From a352edb39311fd68e13a5b3d874b5a4c268e4b92 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 26 Feb 2018 13:07:53 -0500 Subject: [PATCH] Added code to post processing to ensure http:// is always at the beginning of URLs --- classes/data/dataEvents.php | 5 +++++ 1 file changed, 5 insertions(+) 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 = " -- 2.17.1