From 69d49eb2af81e108a751d0ce0e29238687974007 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sun, 15 Jun 2003 22:44:54 +0000 Subject: [PATCH] IIS specific redirect git-svn-id: http://svn.automattic.com/wordpress/trunk@227 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2comments.post.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/b2comments.post.php b/b2comments.post.php index 140fc4c9d9..5f22df225d 100644 --- a/b2comments.post.php +++ b/b2comments.post.php @@ -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.'); }