mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -98,6 +98,8 @@ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
$location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
|
||||
$location = preg_replace('|[^a-z?=&/~.:_-]|i', '', $location);
|
||||
|
||||
if ($is_IIS) {
|
||||
header("Refresh: 0;url=$location");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user