From 4b9ec7ec13d8ea2ee6b5c00f397c52d132a185c7 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 20 May 2021 11:53:29 -0600 Subject: [PATCH] Api: Respect do_symlink flag to keep links as links Fixes troubles with syncing --- api/src/Vfs/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs/Base.php b/api/src/Vfs/Base.php index 51696f8fb4..6cf09a96f2 100644 --- a/api/src/Vfs/Base.php +++ b/api/src/Vfs/Base.php @@ -311,7 +311,7 @@ class Base // Make sure we don't cache anything with a link anywhere in the url, since it fails with eg: /apps/InfoLog/Open$/2021$. // is_link() is not always right here $is_link = is_link($url) || (self::symlinkCache_resolve(Vfs::parse_url($url,PHP_URL_PATH)) !== Vfs::parse_url($url,PHP_URL_PATH)); - if($is_link) + if($is_link && $do_symlink) { $old_url = $url; $_url = self::symlinkCache_resolve(Vfs::parse_url($url,PHP_URL_PATH));