Merge pull request #11537 from owncloud/filenamewithzeroes

Fixed array detection on public download
This commit is contained in:
Vincent Petry 2014-10-13 16:56:11 +02:00
commit 4fd8cb43ae

View file

@ -114,7 +114,7 @@ if (isset($path)) {
$files = $_GET['files'];
$files_list = json_decode($files);
// in case we get only a single file
if ($files_list === NULL ) {
if (!is_array($files_list)) {
$files_list = array($files);
}
OC_Files::get($path, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD');