Allow pipes through clean_url(). Props scohoust. fixes #7145
git-svn-id: https://develop.svn.wordpress.org/trunk@11023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5eafd7ee5f
commit
4dc60fe8bb
|
@ -1980,7 +1980,7 @@ function clean_url( $url, $protocols = null, $context = 'display' ) {
|
||||||
$original_url = $url;
|
$original_url = $url;
|
||||||
|
|
||||||
if ('' == $url) return $url;
|
if ('' == $url) return $url;
|
||||||
$url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$*\'()\\x80-\\xff]|i', '', $url);
|
$url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\\x80-\\xff]|i', '', $url);
|
||||||
$strip = array('%0d', '%0a');
|
$strip = array('%0d', '%0a');
|
||||||
$url = str_replace($strip, '', $url);
|
$url = str_replace($strip, '', $url);
|
||||||
$url = str_replace(';//', '://', $url);
|
$url = str_replace(';//', '://', $url);
|
||||||
|
|
Loading…
Reference in New Issue