From: Roland Häder Date: Tue, 25 Nov 2008 19:10:49 +0000 (+0000) Subject: Fix for LOAD_URL() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7e1906faf03bfa063e50770b299726612ee5c2c;p=mailer.git Fix for LOAD_URL() --- 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();