From d7e1906faf03bfa063e50770b299726612ee5c2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Nov 2008 19:10:49 +0000 Subject: [PATCH] Fix for LOAD_URL() --- inc/databases.php | 2 +- inc/functions.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 851c80f114..fbdd39899f 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "557"); +define('CURR_SVN_REVISION', "558"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index 5c69d92b29..69bd2e1b05 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -921,15 +921,15 @@ function MAKE_TIME($H, $M, $S, $stamp) { function LOAD_URL($URL, $addUrlData=true) { global $CSS, $_CONFIG, $footer; + // Compile out URI codes + $URL = COMPILE_CODE($URL); + // Check if http(s):// is there if ((substr($URL, 0, 7) != "http://") && (substr($URL, 0, 8) != "https://")) { // Make all URLs full-qualified $URL = URL."/".$URL; } - // Compile out URI codes - $URL = COMPILE_CODE($URL); - // Get output buffer $OUTPUT = ob_get_contents(); -- 2.30.2