Remove whitespace only keys from query string

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-03-30 13:31:58 +01:00
parent a888ed9274
commit 16ce163e7f
No known key found for this signature in database

View File

@ -398,7 +398,7 @@ namespace XenAdmin.Actions
queryString = string.Join("&", queryString = string.Join("&",
query.AllKeys query.AllKeys
.Where(key => key != null) .Where(key => !string.IsNullOrWhiteSpace(key))
.Select(key => $"{key}={query[key]}") .Select(key => $"{key}={query[key]}")
); );
} }