mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Api: Respect do_symlink flag to keep links as links
Fixes troubles with syncing
This commit is contained in:
parent
069cf4c3ac
commit
2c14226ee5
@ -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$.
|
// 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 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));
|
$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;
|
$old_url = $url;
|
||||||
$_url = self::symlinkCache_resolve(Vfs::parse_url($url,PHP_URL_PATH));
|
$_url = self::symlinkCache_resolve(Vfs::parse_url($url,PHP_URL_PATH));
|
||||||
|
Loading…
Reference in New Issue
Block a user