From 46c0ed7427c2ff2f45d7ec1a61cfb3b3dd92c914 Mon Sep 17 00:00:00 2001
From: Michael Hamann <michael@content-space.de>
Date: Mon, 1 Sep 2008 14:08:12 +0200
Subject: [PATCH] No more redirect on do

darcs-hash:20080901120812-fdd0b-7082d4c264f665899f56438c0d0a64137d83b3a1.gz
---
 inc/actions.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/actions.php b/inc/actions.php
index 41cad5c00..2faf8bfca 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -129,8 +129,8 @@ function act_dispatch(){
   $evt->advise_after();
   unset($evt);
 
-  // when action 'show' and POST, do a redirect
-  if($ACT == 'show' && strtolower($_SERVER['REQUEST_METHOD']) == 'post'){
+  // when action 'show', the intial not 'show' and POST, do a redirect
+  if($ACT == 'show' && $preact != 'show' && strtolower($_SERVER['REQUEST_METHOD']) == 'post'){
     act_redirect($ID,$preact);
   }
 
-- 
GitLab