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:
Matt Mullenweg
2004-10-05 08:35:22 +00:00
parent 9aa1ed0d11
commit 4cf19662eb
4 changed files with 5 additions and 1 deletions
+2
View File
@@ -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 {