Encode query parameters in AddAuthTokenToQueryString

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-04-13 11:43:44 +01:00
parent dc1e001a8a
commit bfd99e1869
No known key found for this signature in database

View File

@ -1570,7 +1570,7 @@ namespace XenAdmin.Core
queryString = string.Join("&",
query.AllKeys
.Where(key => !string.IsNullOrWhiteSpace(key))
.Select(key => $"{key}={query[key]}")
.Select(key => $"{key}={HttpUtility.UrlEncode(query[key])}")
);
}
catch (Exception ex)