]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rewrite_functions.php
Possible fix for badly rewritten links
[mailer.git] / inc / libs / rewrite_functions.php
index 2b1a74b26b4b4d3b67a88538298910b6c6d5f0be..36399f1662a418a971f643f5436067f8076a9c56 100644 (file)
@@ -54,12 +54,11 @@ function REWRITE_LINKS ($HTML) {
        $target = constant('URL')."/cms/";
 
        // Convert modules.php?module=...
-       $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", $target, $HTML);
+       $test = preg_replace("/".$URL."/modules.php?module=/i", $target, $HTML);
 
        if (eregi(SERVER_URL, $test)) {
-               // Konvert URLs from my server
-               $URL = str_replace("/", "\\/", constant('SERVER_URL'));
-               $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", constant('SERVER_URL')."/cms/", $test);
+               // Convert URLs from my server
+               $test = preg_replace("/".constant('SERVER_URL')."/modules.php?module=/i", constant('SERVER_URL')."/cms/", $test);
        } // END - if
 
        // Strip slashes as above for the main URL