]> git.p6c8.net - jirafeau_mojo42.git/commit
[BUGFIX] Catch errors in upload form
authorDan Untenzu <untenzu@webit.de>
Fri, 27 Jan 2017 09:23:50 +0000 (10:23 +0100)
committerJerome Jutteau <jerome.jutteau@outscale.com>
Thu, 23 Feb 2017 17:34:20 +0000 (18:34 +0100)
commit169cbfa6f1d566deba92eb3ac559cba01588be27
treea857cedae693988a5f63c2fd4599db490460681e
parent5d175ba7ddf47940b6373f419b41ed24c3eb4954
[BUGFIX] Catch errors in upload form

The upload forms failed to catch errors due to a
never matching condition. Failing uploads (eg. because of
filesize limit etc.) still tried to render non-existing
download links instead of showing the error.

Fix the condition by testing if the return string
starts with "Error" instead of equals "Error".

Refs #96
lib/functions.js.php

patrick-canterino.de