Remove manual santization of redirect URLs (handled in wp_redirect())

git-svn-id: https://develop.svn.wordpress.org/trunk@9779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2008-11-19 06:32:10 +00:00
parent 3db5e00550
commit 3b9b10645f
6 changed files with 1 additions and 8 deletions
-1
View File
@@ -213,7 +213,6 @@ case 'delete':
$sendback = wp_get_referer();
if (strpos($sendback, 'post.php') !== false) $sendback = admin_url('post-new.php');
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
wp_redirect($sendback);
exit();
break;