Roll back [5986], [5988], [5989]. We are in a char class, so no escaping needed. Props mdawaffe. see #4873

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-08-30 18:13:48 +00:00
parent d2de590be2
commit 572fa79e9a

View File

@ -259,7 +259,7 @@ if ( !function_exists('wp_redirect') ) :
function wp_redirect($location, $status = 302) {
global $is_IIS;
$location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location);
$location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
// remove %0d and %0a from location
$strip = array('%0d', '%0a');