summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-07 14:15:02 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-07 14:15:02 +0100
commit4a4f705adc32831c4e90422598dbe0e89c6acd80 (patch)
treee3107d1554f22b878eea29005cf183e487882a1e /lib/files.php
parent97222b1de5349ac31abf518b7fd762b24947e237 (diff)
downloadnextcloud-server-4a4f705adc32831c4e90422598dbe0e89c6acd80.tar.gz
nextcloud-server-4a4f705adc32831c4e90422598dbe0e89c6acd80.zip
json encode list of files
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/files.php b/lib/files.php
index b594b78c4b7..ae3144de2c5 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -49,8 +49,9 @@ class OC_Files {
isset($_SERVER['MOD_X_ACCEL_REDIRECT_ENABLED'])) {
$xsendfile = true;
}
- if(strpos($files, ';')) {
- $files=explode(';', $files);
+
+ if (count($files) == 1) {
+ $files = $files[0];
}
if (is_array($files)) {