Api: Make sure mountpoint URL query and target URL query don't double ? in path query

This commit is contained in:
nathan 2022-04-07 12:57:13 -06:00
parent e782cb9105
commit 0d32bb6e5c

View File

@ -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']))
{