Prevented direct call of old search page/form
authorMarcel Werk <burntime@woltlab.com>
Thu, 9 Dec 2021 16:08:46 +0000 (17:08 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 9 Dec 2021 16:08:46 +0000 (17:08 +0100)
wcfsetup/install/files/lib/form/SearchForm.class.php
wcfsetup/install/files/lib/page/SearchResultPage.class.php

index 2ba674a725f54bebac13defc8f8a5c9af07115e2..e76ef9f25e84568c2639ff731c07a5a19dba0069 100644 (file)
@@ -567,4 +567,12 @@ class SearchForm extends AbstractCaptchaForm
     {
         return $this->userIDs;
     }
+
+    /**
+     * @inheritDoc
+     */
+    public function __run()
+    {
+        throw new IllegalLinkException();
+    }
 }
index 3e153eb0840181371030c230cb2bb09d49ed23d2..e33e0e22b250ca51b0c820cb355879d96258f6a6 100644 (file)
@@ -5,7 +5,6 @@ namespace wcf\page;
 use wcf\data\search\ICustomIconSearchResultObject;
 use wcf\data\search\ISearchResultObject;
 use wcf\data\search\Search;
-use wcf\system\application\ApplicationHandler;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\exception\ImplementationException;
@@ -218,4 +217,12 @@ class SearchResultPage extends MultipleLinkPage
     protected function readObjects()
     {
     }
+
+    /**
+     * @inheritDoc
+     */
+    public function __run()
+    {
+        throw new IllegalLinkException();
+    }
 }