From: quix0r Date: Tue, 10 Mar 2009 20:24:40 +0000 (+0000) Subject: Possible fix for badly rewritten links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=950335e4d88e899b2809d8bf66b86caa048d508f;p=mailer.git Possible fix for badly rewritten links --- diff --git a/inc/libs/rewrite_functions.php b/inc/libs/rewrite_functions.php index 2b1a74b26b..36399f1662 100644 --- a/inc/libs/rewrite_functions.php +++ b/inc/libs/rewrite_functions.php @@ -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