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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2008-11-19 06:32:10 +00:00
parent a59fe0f02c
commit e00551ef6c
6 changed files with 1 additions and 8 deletions

View File

@@ -52,7 +52,6 @@ if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2']
$sendback = wp_get_referer();
if (strpos($sendback, 'page.php') !== false) $sendback = admin_url('page-new.php');
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
if ( isset($done) ) {
$done['updated'] = count( $done['updated'] );
$done['skipped'] = count( $done['skipped'] );