Return `400 Bad Request` instead of 431
authorAlexander Ebert <ebert@woltlab.com>
Fri, 18 Aug 2017 11:18:36 +0000 (13:18 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 18 Aug 2017 11:18:36 +0000 (13:18 +0200)
Closes #2378

wcfsetup/install/files/lib/system/exception/AJAXException.class.php

index 332bac446ed51e472d96b8ac710fbf202050405a..dc94aa7302c0ad7989dd2da26e16ef65aaf49a92 100644 (file)
@@ -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;