From 58b4c2c0e53ff5ef6e261426ecb2b94d9791da71 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 26 Mar 2015 19:24:37 +0100 Subject: Make sure mountOptions keep their data type str_replace for $user substitution was converting the data type of mountOptions to string. This fix prevents this to happen by making sure only strings are processed by substitution. Also added a int conversion when reading the watcher policy --- lib/private/files/storage/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index 11cf3405fd9..10abf87f151 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -333,7 +333,7 @@ abstract class Common implements \OC\Files\Storage\Storage { if (!isset($this->watcher)) { $this->watcher = new Watcher($storage); $globalPolicy = \OC::$server->getConfig()->getSystemValue('filesystem_check_changes', Watcher::CHECK_ONCE); - $this->watcher->setPolicy($this->getMountOption('filesystem_check_changes', $globalPolicy)); + $this->watcher->setPolicy((int)$this->getMountOption('filesystem_check_changes', $globalPolicy)); } return $this->watcher; } -- cgit v1.2.3