WordPress.org

Make WordPress Core

Changeset 6613


Ignore:
Timestamp:
01/14/08 20:38:43 (6 years ago)
Author:
ryan
Message:

Allow parens in urls. Props nbachiyski. fixes #5668

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r6452 r6613  
    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); 
Note: See TracChangeset for help on using the changeset viewer.