From: Roland Häder Date: Sat, 3 Nov 2012 21:28:54 +0000 (+0000) Subject: Had to do it this way... :( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=93b1321862eb860e600e796dc290e2be27fb97fa;p=mailer.git Had to do it this way... :( --- diff --git a/inc/filters.php b/inc/filters.php index ecfa95f269..d2981c0f11 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -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