IIS specific redirect
git-svn-id: http://svn.automattic.com/wordpress/trunk@227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
58d85df472
commit
69d49eb2af
|
@ -127,8 +127,11 @@ if ($ok) {
|
||||||
header('Cache-Control: no-cache, must-revalidate');
|
header('Cache-Control: no-cache, must-revalidate');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
$location = (!empty($HTTP_POST_VARS['redirect_to'])) ? $HTTP_POST_VARS['redirect_to'] : $HTTP_SERVER_VARS["HTTP_REFERER"];
|
$location = (!empty($HTTP_POST_VARS['redirect_to'])) ? $HTTP_POST_VARS['redirect_to'] : $HTTP_SERVER_VARS["HTTP_REFERER"];
|
||||||
|
if ($is_IIS) {
|
||||||
|
header("Refresh: 0;url=$location");
|
||||||
|
} else {
|
||||||
header("Location: $location");
|
header("Location: $location");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
die('Sorry, you can only post a new comment once every 30 seconds.');
|
die('Sorry, you can only post a new comment once every 30 seconds.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue