From 4b3690e120f804b9526d76c9c011af50c49c08ac Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 23 Sep 2014 19:15:07 +0200 Subject: [PATCH] Added missing form redirect --- .../install/files/lib/page/EditHistoryPage.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; + } } /** -- 2.20.1