diff --git a/functions.php b/functions.php index 1d37727fe..a7e106a9d 100644 --- a/functions.php +++ b/functions.php @@ -3671,6 +3671,8 @@ $res = preg_replace('/]+>/is', '', $res); } + $res = rewrite_urls($res); + $charset_hack = ' '; @@ -7040,4 +7042,15 @@ } + function rewrite_urls($line) { + global $url_regex; + + $urls = null; + + $result = preg_replace("/((?\\1", $line); + + return $result; + } + ?>