Ticket #16859: patch16859.diff
File patch16859.diff, 577 bytes (added by , 14 years ago) |
---|
-
wp-includes/formatting.php
2246 2246 2247 2247 if ( '' == $url ) 2248 2248 return $url; 2249 2250 // Preserve parentheses and square brackets - see #16859 2251 $url = str_replace( Array('(',')','[',']'), Array('%28','%29','%5B','%5D'), $url ); 2252 2249 2253 $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\\x80-\\xff]|i', '', $url); 2250 2254 $strip = array('%0d', '%0a', '%0D', '%0A'); 2251 2255 $url = _deep_replace($strip, $url);