From: Alexander Ebert Date: Sun, 3 Nov 2013 14:05:10 +0000 (+0100) Subject: Fixed broken GET-support of SearchForm X-Git-Tag: 2.0.0_Beta_11~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=400db74e7893f1196c496c0b56450ae6db47e91c;p=GitHub%2FWoltLab%2FWCF.git Fixed broken GET-support of SearchForm --- 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'];