summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-16 01:30:44 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-16 01:30:44 +0100
commit46626915ef6888c958111b259ae6c0d3729b5198 (patch)
tree2389d96ab36a82c879a777a81b00639f99c40750 /apps/files_external/lib
parent425d41aaf93e1cd3a44ddc794414683e8e2c4648 (diff)
downloadnextcloud-server-46626915ef6888c958111b259ae6c0d3729b5198.tar.gz
nextcloud-server-46626915ef6888c958111b259ae6c0d3729b5198.zip
Use a parser to read custom mount configuration instead of including the php files
Diffstat (limited to 'apps/files_external/lib')
-rwxr-xr-xapps/files_external/lib/config.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 44e668a09c0..6ef7f37f58b 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -279,13 +279,14 @@ class OC_Mount_Config {
* @return array
*/
private static function readData($isPersonal) {
+ $parser = new \OC\ArrayParser();
if ($isPersonal) {
$file = OC_User::getHome(OCP\User::getUser()).'/mount.php';
} else {
$file = OC::$SERVERROOT.'/config/mount.php';
}
if (is_file($file)) {
- $mountPoints = include $file;
+ $mountPoints = $parser->parsePHP(file_get_contents($file));
if (is_array($mountPoints)) {
return $mountPoints;
}