Make WordPress Core

Ticket #5668: allow-parens-in-url.diff

File allow-parens-in-url.diff, 521 bytes (added by nbachiyski, 17 years ago)
  • wp-includes/formatting.php

     
    11111111        $original_url = $url;
    11121112
    11131113        if ('' == $url) return $url;
    1114         $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@]|i', '', $url);
     1114        $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@()]|i', '', $url);
    11151115        $strip = array('%0d', '%0a');
    11161116        $url = str_replace($strip, '', $url);
    11171117        $url = str_replace(';//', '://', $url);