ZipDirectoryReader: Don't try to parse zero-length files
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 24 Mar 2016 09:14:03 +0000 (10:14 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 24 Mar 2016 09:15:10 +0000 (10:15 +0100)
commita0723d50ffa042dec9e1a8610b22f0d111ac9cd0
treecd73803ddb38d6badd3e6c995a75ebc4ce691112
parent34bc4b502c82b8a2eca09038c6dfa066e3d17ed9
ZipDirectoryReader: Don't try to parse zero-length files

With the current code, 'zip-bad' would be returned (eventually). I think
'zip-wrong-format' is a more correct response. This prevents weird errors
when trying to upload such a file (and results in saner errors instead).

Change-Id: Ic2c010f318d98df4783da1cf5126e8dd88aa9014
includes/utils/ZipDirectoryReader.php