]> git.mxchange.org Git - mailer.git/commitdiff
Had to do it this way... :(
authorRoland Häder <roland@mxchange.org>
Sat, 3 Nov 2012 21:28:54 +0000 (21:28 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 3 Nov 2012 21:28:54 +0000 (21:28 +0000)
inc/filters.php

index ecfa95f2698085585572c575bb5853e39f468f35..d2981c0f11d2400fa0c66c0a0eda2ea2b9e630e3 100644 (file)
@@ -1318,8 +1318,11 @@ function FILTER_HANDLE_REFERRER_BANNER_VIEW ($filterData) {
 
 // Filter for redirecting on wrong server name (e.g. bad.your-server.tld will be redirected to your-server.tld)
 function FILTER_REDIRECT_WRONG_SERVER_NAME ($filterData) {
+       // Get URL
+       $url = getUrl();
+
        // Is the configured URL same as SERVER_NAME?
-       if (extractHostnameFromUrl(getUrl()) != detectServerName()) {
+       if (extractHostnameFromUrl($url) != detectServerName()) {
                // Then redirect to configured URL
                redirectToRequestUri();
        } // END - if