From: Marcel Werk Date: Tue, 23 Sep 2014 17:15:07 +0000 (+0200) Subject: Added missing form redirect X-Git-Tag: 2.1.0_Alpha_1~299 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b3690e120f804b9526d76c9c011af50c49c08ac;p=GitHub%2FWoltLab%2FWCF.git Added missing form redirect --- diff --git a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php index e3170cb4a7..8a8ff0370d 100644 --- a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php +++ b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php @@ -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; + } } /**