From 48278db41caf93b3c86fd1a192e191e6ded7aac1 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 25 Apr 2006 08:14:47 +0000 Subject: [PATCH] fix redirection issue on IIS --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 01f4bb2..ece13db 100644 --- a/index.php +++ b/index.php @@ -222,7 +222,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range $matches[1] = serendipity_searchPermalink($serendipity['permalinkStructure'], $uri, $matches[1], 'entry'); serendipity_rememberComment(); - if (!empty($serendipity['POST']['submit'])) { + if (!empty($serendipity['POST']['submit']) && !isset($_REQUEST['serendipity']['csuccess'])) { $comment['url'] = $serendipity['POST']['url']; $comment['comment'] = trim($serendipity['POST']['comment']); $comment['name'] = $serendipity['POST']['name']; -- 2.39.5