mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-13 18:07:00 +00:00
FancyCaptcha: Don't return status code 500, if no server error
A missing captchaId usually isn't a server error, it's a request error, so return an appropriate status code (400). Bug: T92827 Change-Id: Ia04da583858a8450b8445ad69bc1ef2b7d05f061
This commit is contained in:
parent
9410657977
commit
b6c22b0e02
|
@ -346,7 +346,7 @@ class FancyCaptcha extends SimpleCaptcha {
|
|||
) )->isOK();
|
||||
}
|
||||
|
||||
wfHttpError( 500, 'Internal Error', 'Requested bogus captcha image' );
|
||||
wfHttpError( 400, 'Request Error', 'Requested bogus captcha image' );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue