From: Alexander Ebert Date: Fri, 18 Aug 2017 11:18:36 +0000 (+0200) Subject: Return `400 Bad Request` instead of 431 X-Git-Tag: 3.1.0_Alpha_1~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=324e475c8a94d5caabeeec21cd7dec4474670819;p=GitHub%2FWoltLab%2FWCF.git Return `400 Bad Request` instead of 431 Closes #2378 --- diff --git a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php index 332bac446e..dc94aa7302 100644 --- a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php +++ b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php @@ -105,7 +105,9 @@ class AJAXException extends LoggedException { break; case self::BAD_PARAMETERS: - $statusHeader = 'HTTP/1.1 431 Bad Parameters'; + // see https://github.com/WoltLab/WCF/issues/2378 + //$statusHeader = 'HTTP/1.1 431 Bad Parameters'; + $statusHeader = 'HTTP/1.1 400 Bad Request'; $responseData['exceptionID'] = $exceptionID; break;