From: Tim Düsterhus Date: Wed, 9 Jul 2014 18:22:58 +0000 (+0200) Subject: Add missing validation in EditHistoryPage X-Git-Tag: 2.1.0_Alpha_1~590^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4a4a442264d0795efb6b04d980101933d7833cb;p=GitHub%2FWoltLab%2FWCF.git Add missing validation in EditHistoryPage --- diff --git a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php index c692cbb268..2094ebcda7 100644 --- a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php +++ b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php @@ -116,13 +116,14 @@ class EditHistoryPage extends AbstractPage { } $this->objectType = ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID); + if (!$this->objectType) throw new IllegalLinkException(); $processor = $this->objectType->getProcessor(); $this->object = $processor->getObjectByID($this->objectID); $processor->checkPermissions($this->object); $this->activeMenuItem = $processor->getActivePageMenuItem(); $this->object->addBreadcrumbs(); - if (!$this->new) { + if (isset($_REQUEST['newID']) && !$this->new) { $this->new = $this->object; $this->newID = 'current'; }