Added missing form redirect
authorMarcel Werk <burntime@woltlab.com>
Tue, 23 Sep 2014 17:15:07 +0000 (19:15 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 23 Sep 2014 17:15:07 +0000 (19:15 +0200)
wcfsetup/install/files/lib/page/EditHistoryPage.class.php

index e3170cb4a7c811f0cc2d228fefd7098234b8a8ab..8a8ff0370d7785cc3c0f27caf5482b304132b04b 100644 (file)
@@ -4,8 +4,10 @@ use wcf\data\edit\history\entry\EditHistoryEntry;
 use wcf\data\edit\history\entry\EditHistoryEntryList;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\exception\IllegalLinkException;
+use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 use wcf\util\Diff;
+use wcf\util\HeaderUtil;
 use wcf\util\StringUtil;
 
 /**
@@ -120,6 +122,16 @@ class EditHistoryPage extends AbstractPage {
                        $this->new = $this->object;
                        $this->newID = 'current';
                }
+               
+               if (!empty($_POST)) {
+                       HeaderUtil::redirect(LinkHandler::getInstance()->getLink('EditHistory', array(
+                               'objectID' => $this->objectID,
+                               'objectType' => $this->objectType->objectType,
+                               'newID' => $this->newID,
+                               'oldID' => $this->oldID
+                       )));
+                       exit;
+               }
        }
        
        /**