Shoule compile {?URL?} and so on
authorRoland Häder <roland@mxchange.org>
Tue, 3 Nov 2009 23:11:53 +0000 (23:11 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 3 Nov 2009 23:11:53 +0000 (23:11 +0000)
inc/functions.php

index dbf0581fe2cb8a1a5a31adba8baa9a46a86b4819..9db4633f9ea88296442a825ced830829ae31fe53 100644 (file)
@@ -962,8 +962,8 @@ function makeTime ($hours, $minutes, $seconds, $stamp) {
 
 // Redirects to an URL and if neccessarry extends it with own base URL
 function redirectToUrl ($URL) {
-       // Compile out URI codes
-       $URL = compileUriCode($URL);
+       // Compile out codes
+       eval('$URL = ' . compileCode($URL) . ';');
 
        // Check if http(s):// is there
        if ((substr($URL, 0, 7) != 'http://') && (substr($URL, 0, 8) != 'https://')) {