From 0d32bb6e5c3570323c2ddc6bd22eb3f05b7b3718 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 7 Apr 2022 12:57:13 -0600 Subject: [PATCH] Api: Make sure mountpoint URL query and target URL query don't double ? in path query --- 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 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'])) {