diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-18 04:01:07 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-18 04:01:07 -0800 |
commit | b0532c6343fa540160931f0e2cd650cc8efb7b81 (patch) | |
tree | de6bb391ac6f391f899459b26d6dc8c5fea0eb83 /apps/files_external | |
parent | a4b0df419eeeda428645d07c867532208937b2b9 (diff) | |
parent | 262fecbe397020e2dde4f6ce5602420295e8a070 (diff) | |
download | nextcloud-server-b0532c6343fa540160931f0e2cd650cc8efb7b81.tar.gz nextcloud-server-b0532c6343fa540160931f0e2cd650cc8efb7b81.zip |
Merge pull request #905 from owncloud/fix_mountpointescaping
proper escape the mountpoints.
Diffstat (limited to 'apps/files_external')
-rwxr-xr-x | apps/files_external/lib/config.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index c0864dc50d2..1be544fbc07 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -331,7 +331,7 @@ class OC_Mount_Config { foreach ($data[self::MOUNT_TYPE_GROUP] as $group => $mounts) { $content .= "\t\t'".$group."' => array (\n"; foreach ($mounts as $mountPoint => $mount) { - $content .= "\t\t\t'".$mountPoint."' => ".str_replace("\n", '', var_export($mount, true)).", \n"; + $content .= "\t\t\t'".addcslashes($mountPoint,"'")."' => ".str_replace("\n", '', var_export($mount, true)).", \n"; } $content .= "\t\t),\n"; @@ -343,7 +343,7 @@ class OC_Mount_Config { foreach ($data[self::MOUNT_TYPE_USER] as $user => $mounts) { $content .= "\t\t'".$user."' => array (\n"; foreach ($mounts as $mountPoint => $mount) { - $content .= "\t\t\t'".$mountPoint."' => ".str_replace("\n", '', var_export($mount, true)).",\n"; + $content .= "\t\t\t'".addcslashes($mountPoint,"'")."' => ".str_replace("\n", '', var_export($mount, true)).",\n"; } $content .= "\t\t),\n"; } |