WordPress.org

Make WordPress Core

Changeset 11023


Ignore:
Timestamp:
04/20/09 22:02:17 (6 years ago)
Author:
ryan
Message:

Allow pipes through clean_url(). Props scohoust. fixes #7145

File:
1 edited

Legend:

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

    r11013 r11023  
    19811981 
    19821982    if ('' == $url) return $url; 
    1983     $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$*\'()\\x80-\\xff]|i', '', $url); 
     1983    $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\\x80-\\xff]|i', '', $url); 
    19841984    $strip = array('%0d', '%0a'); 
    19851985    $url = str_replace($strip, '', $url); 
Note: See TracChangeset for help on using the changeset viewer.