From 400db74e7893f1196c496c0b56450ae6db47e91c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 3 Nov 2013 15:05:10 +0100 Subject: [PATCH] Fixed broken GET-support of SearchForm --- wcfsetup/install/files/lib/form/SearchForm.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index 89b0952d21..43fdb2727f 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -184,6 +184,11 @@ class SearchForm extends RecaptchaForm { } } + // disable check for security token for GET requests + if ($this->submit) { + $_POST['t'] = WCF::getSession()->getSecurityToken(); + } + // sort order if (isset($_REQUEST['sortField'])) { $this->sortField = $_REQUEST['sortField']; -- 2.20.1