]> git.mjollnir.org Git - s9y.git/commitdiff
fix redirection issue on IIS
authorgarvinhicking <garvinhicking>
Tue, 25 Apr 2006 08:14:47 +0000 (08:14 +0000)
committergarvinhicking <garvinhicking>
Tue, 25 Apr 2006 08:14:47 +0000 (08:14 +0000)
index.php

index 01f4bb251e87668737cedec13527bf2109131e95..ece13dbd2b81400c487c463634bff3537f2e933b 100644 (file)
--- 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'];