diff --git a/api/src/Vfs/Base.php b/api/src/Vfs/Base.php index 54252a1251..82ceeef450 100644 --- a/api/src/Vfs/Base.php +++ b/api/src/Vfs/Base.php @@ -346,7 +346,7 @@ class Base } if (isset($parts['query'])) { - $url .= '?' . $parts['query']; + $url .= (parse_url($url, PHP_URL_QUERY) ? '&' : '?') . $parts['query']; } if (isset($parts['fragment'])) {