Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-02-18 17:38:40 +0400
committerFrank Karlitschek <frank@owncloud.org>2013-02-18 17:38:40 +0400
commit3be64bb4aa8c300137f547d4403ec7c8c15efa67 (patch)
tree07e110c831ef63405ff8550724890bd04d22d37c
parentcb174356e5f85eb20006b49fd8bb0e1295ebd45a (diff)
parentd746aa0b93a71e5804b370fa6db0691e48168129 (diff)
Merge pull request #1735 from owncloud/encodePathCorrectly
Use addslashes instead of addcslashes
-rwxr-xr-xapps/files_external/lib/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index a55b00d4207..da81a0127ac 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -256,7 +256,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'".addcslashes($mountPoint,"'")."' => ".str_replace("\n", '', var_export($mount, true)).",\n";
+ $content .= "\t\t\t'".addslashes($mountPoint)."' => ".str_replace("\n", '', var_export($mount, true)).",\n";
}
$content .= "\t\t),\n";
@@ -268,7 +268,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'".addcslashes($mountPoint,"'")."' => ".str_replace("\n", '', var_export($mount, true)).",\n";
+ $content .= "\t\t\t'".addslashes($mountPoint)."' => ".str_replace("\n", '', var_export($mount, true)).",\n";
}
$content .= "\t\t),\n";
}