Fixed broken GET-support of SearchForm
authorAlexander Ebert <ebert@woltlab.com>
Sun, 3 Nov 2013 14:05:10 +0000 (15:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 3 Nov 2013 14:05:10 +0000 (15:05 +0100)
wcfsetup/install/files/lib/form/SearchForm.class.php

index 89b0952d21e2797da13dbb44a65855c19d9d00af..43fdb2727f8648617a547423edf89838eba4d54f 100644 (file)
@@ -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'];