WordPress.org

Make WordPress Core

Ticket #7386: clean-url-dont-escape-dollar.patch

File clean-url-dont-escape-dollar.patch, 526 bytes (added by sambauers, 6 years ago)
  • wp-includes/formatting.php

     
    11471147        $original_url = $url; 
    11481148 
    11491149        if ('' == $url) return $url; 
    1150         $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@()]|i', '', $url); 
     1150        $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$*\'()]|i', '', $url); 
    11511151        $strip = array('%0d', '%0a'); 
    11521152        $url = str_replace($strip, '', $url); 
    11531153        $url = str_replace(';//', '://', $url);