mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
IIS specific redirect
git-svn-id: https://develop.svn.wordpress.org/trunk@227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -127,8 +127,11 @@ if ($ok) {
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
$location = (!empty($HTTP_POST_VARS['redirect_to'])) ? $HTTP_POST_VARS['redirect_to'] : $HTTP_SERVER_VARS["HTTP_REFERER"];
|
||||
header("Location: $location");
|
||||
|
||||
if ($is_IIS) {
|
||||
header("Refresh: 0;url=$location");
|
||||
} else {
|
||||
header("Location: $location");
|
||||
}
|
||||
} else {
|
||||
die('Sorry, you can only post a new comment once every 30 seconds.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user