From: Chuck Scott Date: Mon, 26 Feb 2018 18:07:53 +0000 (-0500) Subject: Added code to post processing to ensure http:// is always at the beginning of URLs X-Git-Tag: v1.6.78^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a352edb39311fd68e13a5b3d874b5a4c268e4b92;p=WP-Plugins%2Fglm-member-db-events.git Added code to post processing to ensure is always at the beginning of URLs --- diff --git a/classes/data/dataEvents.php b/classes/data/dataEvents.php index 0ac06e5..aa45d50 100644 --- 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 = "