mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Changes to how we do redirects.
git-svn-id: https://develop.svn.wordpress.org/trunk@1748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -86,6 +86,7 @@ case 'update':
|
||||
|
||||
$referred = str_replace('?updated=true' , '', $_SERVER['HTTP_REFERER']);
|
||||
$goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
|
||||
$goback = preg_replace('|[^a-z?=&/~.:_-]|i', '', $goback);
|
||||
header('Location: ' . $goback);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user