summaryrefslogtreecommitdiff
path: root/static/classes/UploadedFile.class.php
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-29 23:53:01 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-29 23:53:01 +0200
commitfb23dde10af35eea3b0f0b14459630305618ac3a (patch)
tree3eb46e96cabcc93ee6823b093096194a7ad20bcc /static/classes/UploadedFile.class.php
parent2ca5b6b743487477fdaf045a7d4abb605780a300 (diff)
Remove default undefined behavior from Response class
Let's say some user decides to use output "xml". Unexpectedly, the user would instead receive JSON output. This is undefined behavior in its own way and violates the principle of least surprise. Problems could arise if we added "xml" later with actual application/xml or text/xml content. Right now upload.php overrides an empty output argument to json instead, so this seems safe to do. Any non-existent output will now return a 400 Bad Request error.
Diffstat (limited to 'static/classes/UploadedFile.class.php')
0 files changed, 0 insertions, 0 deletions