mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Encode query parameters in AddAuthTokenToQueryString
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
parent
dc1e001a8a
commit
bfd99e1869
@ -1570,7 +1570,7 @@ namespace XenAdmin.Core
|
|||||||
queryString = string.Join("&",
|
queryString = string.Join("&",
|
||||||
query.AllKeys
|
query.AllKeys
|
||||||
.Where(key => !string.IsNullOrWhiteSpace(key))
|
.Where(key => !string.IsNullOrWhiteSpace(key))
|
||||||
.Select(key => $"{key}={query[key]}")
|
.Select(key => $"{key}={HttpUtility.UrlEncode(query[key])}")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user