summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 47292c56ea8..e7c9ac8015d 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -633,7 +633,7 @@ class OC_Helper {
* @return bool
*/
public static function issubdirectory($sub, $parent) {
- if (strpos(realpath($sub), realpath($parent)) !== false) {
+ if (strpos(realpath($sub), realpath($parent)) === 0) {
return true;
}
return false;