diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-05 13:22:38 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-05 13:22:38 +0200 |
commit | d1d68855850022ee4dd91105f00a947029f2e4c8 (patch) | |
tree | 0b317117576dd8dbacd0d28452b5b1194ee92610 /apps/files | |
parent | 0c32f668998bfa95ae9a36bbddcc6263b2a98701 (diff) | |
download | nextcloud-server-d1d68855850022ee4dd91105f00a947029f2e4c8.tar.gz nextcloud-server-d1d68855850022ee4dd91105f00a947029f2e4c8.zip |
php 5.3 compliant now
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/ajax/upload.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 4b015e4d1f5..733ed95974f 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -34,9 +34,10 @@ if (empty($_POST['dirToken'])) { } // The token defines the target directory (security reasons) + $sharedItem = array_pop($sharedItem); $dir = sprintf( "/%s/%s", - array_pop($sharedItem)['path'], + $sharedItem['path'], isset($_POST['subdir']) ? $_POST['subdir'] : '' ); |