mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Better redirect cleaning.
git-svn-id: https://develop.svn.wordpress.org/trunk@1751 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -458,7 +458,7 @@ case 'delete':
|
||||
|
||||
$sendback = $_SERVER['HTTP_REFERER'];
|
||||
if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
|
||||
$sendback = preg_replace('|[^a-z?=&/~.:_-]|i', '', $sendback);
|
||||
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
|
||||
header ('Location: ' . $sendback);
|
||||
do_action('delete_post', $post_id);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user