diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-12-01 19:13:28 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-01 19:13:28 +0100 |
commit | 9704b4df5287b41dc80f83b032b406f664ae021c (patch) | |
tree | 095fd91a19a9e7244f677bf73445e18ffaa8f189 /apps/files/js | |
parent | 5cea7f35e124ea7a6b8352a1d05c00069e8814ae (diff) | |
download | nextcloud-server-9704b4df5287b41dc80f83b032b406f664ae021c.tar.gz nextcloud-server-9704b4df5287b41dc80f83b032b406f664ae021c.zip |
Catch status code 400
In case the server returns a statuscode 400 we should also gracefully return to the home directory.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index fb0439114ed..a8daeadfd26 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1638,7 +1638,7 @@ return false; } - if (status === 404 || status === 405) { + if (status === 400 || status === 404 || status === 405) { // go back home this.changeDirectory('/'); return false; |