From 65b2588d65f52cdd8c060fda57fce083914e0565 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 15 Mar 2018 12:23:43 +0100 Subject: [PATCH] Add missing negation from commit 600872a4bf695c93c5d9de787b35d02bce93a475 --- api/src/Vfs/Sharing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index bc6b028564..a6aab9e4ec 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -456,7 +456,7 @@ class Sharing if (($exists = ($stat = Vfs::stat($path)) && Vfs::check_access($path, Vfs::READABLE, $stat))) { - if (preg_match("/^(sqlfs|vfs)/", $stat['url'])) + if (!preg_match("/^(sqlfs|vfs)/", $stat['url'])) { $vfs_path = Vfs::parse_url($path, PHP_URL_PATH); }