From 56989f4f5c982ded93bb44ae8def5922596a09b7 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 17 Nov 2009 20:18:48 +0000 Subject: [PATCH] Allow 0xAD in URI attributes. Props nbachiyski. fixes #9823 #10859 git-svn-id: https://develop.svn.wordpress.org/trunk@12199 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/kses.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 1c4d06685b..56176b4684 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -775,7 +775,6 @@ function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { */ function wp_kses_bad_protocol($string, $allowed_protocols) { $string = wp_kses_no_null($string); - $string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature" $string2 = $string.'a'; while ($string != $string2) { @@ -920,8 +919,6 @@ function wp_kses_bad_protocol_once2($matches) { $string2 = wp_kses_decode_entities($string); $string2 = preg_replace('/\s/', '', $string2); $string2 = wp_kses_no_null($string2); - $string2 = preg_replace('/\xad+/', '', $string2); - # deals with Opera "feature" $string2 = strtolower($string2); $allowed = false;