Serve 400 instead of 500 when invalid thumbnail parameters are requested
authorGilles Dubuc <gilles@wikimedia.org>
Thu, 24 Nov 2016 12:14:11 +0000 (13:14 +0100)
committerGilles Dubuc <gdubuc@wikimedia.org>
Tue, 29 Nov 2016 08:50:42 +0000 (09:50 +0100)
commit80c1e8343e58bf44aac158b98a7bf69fbb78ed8b
treeef4ea6666528b26875b866c82ed35ecf66479700
parent163282a24c6201b25eb0ecdf753ffa6ad689ed0f
Serve 400 instead of 500 when invalid thumbnail parameters are requested

This was requested because of 0px thumbnail requests, but there are
other cases where parameters are detected as invalid and 400 is
semantically more correct than 500 in that situation.

Bug: T147784
Change-Id: I4d24a93e655f04d8119e77798d5df5a45caaafcf
includes/media/MediaTransformOutput.php
thumb.php