projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed3381
)
Added code to post processing to ensure http:// is always at the beginning of URLs
author
Chuck Scott
<cscott@gaslightmedia.com>
Mon, 26 Feb 2018 18:07:53 +0000
(13:07 -0500)
committer
Chuck Scott
<cscott@gaslightmedia.com>
Mon, 26 Feb 2018 18:07:53 +0000
(13:07 -0500)
classes/data/dataEvents.php
patch
|
blob
|
history
diff --git
a/classes/data/dataEvents.php
b/classes/data/dataEvents.php
index
0ac06e5
..
aa45d50
100644
(file)
--- a/
classes/data/dataEvents.php
+++ b/
classes/data/dataEvents.php
@@
-499,6
+499,11
@@
class GlmDataEvents extends GlmDataAbstract
public function entryPostProcessing($r, $a)
{
+ // Check that URLs have http:// in front of them.
+ if (strtolower(substr($r['url'],0,4)) != 'http') {
+ $r['url'] = 'http://'.$r['url'];
+ }
+
// Get Member Category data for this entry
if ($this->postCategories) {
$sql = "