From: garvinhicking Date: Tue, 25 Apr 2006 08:14:47 +0000 (+0000) Subject: fix redirection issue on IIS X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=48278db41caf93b3c86fd1a192e191e6ded7aac1;p=s9y.git fix redirection issue on IIS --- 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'];