Fixed broken captcha bypass
authorMarcel Werk <burntime@woltlab.com>
Fri, 20 Jan 2017 16:31:00 +0000 (17:31 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 20 Jan 2017 16:31:00 +0000 (17:31 +0100)
wcfsetup/install/files/lib/form/SearchForm.class.php

index 6e51248796935343bb79ee14216ff820d9a1fe01..caefdf9fef61fc1254b1f77cec4bf8959ea1d6ec 100644 (file)
@@ -409,7 +409,7 @@ class SearchForm extends AbstractCaptchaForm {
         * @see \wcf\page\IPage::show()
         */
        public function show() {
-               if (empty($_POST) && $this->submit) {
+               if (count($_POST) == 1 && $this->submit) {
                        if ($this->userID) $this->useCaptcha = false;
                        $this->submit();
                }