Fix: id escaping with colons (#215)

This commit is contained in:
Jason Lyu
2023-10-14 04:52:57 +08:00
committed by GitHub
parent a5fe5f82fa
commit 1f2ca354ef
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ public static class ProviderIdsExtensions
var pid = new ProviderId
{
Provider = provider,
Id = id,
Id = Uri.EscapeDataString(id),
Position = position,
Update = update
};

View File

@@ -16,7 +16,7 @@ public class ProviderId
return new ProviderId
{
Provider = values?.Length > 0 ? values[0] : string.Empty,
Id = values?.Length > 1 ? values[1] : string.Empty,
Id = values?.Length > 1 ? Uri.UnescapeDataString(values[1]) : string.Empty,
Position = values?.Length > 2 ? ToDouble(values[2]) : null,
Update = values?.Length > 3 ? ToBool(values[3]) : null
};