aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Stocchi <tommasostocchi@outlook.com>2020-12-14 14:05:53 +0100
committerTommaso Stocchi <tommasostocchi@outlook.com>2020-12-14 14:05:53 +0100
commit6e2cfc6569044251a7968fdeb16f245cecc46fe6 (patch)
tree1e2c3d313b7ab8ee175a9f537aa763b270284b96
parentb611a108f89ab77b219aecc6d6155540f772cf32 (diff)
Url decode for auth value
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index 5d85facab..0f8011495 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -273,10 +273,16 @@ namespace Emby.Server.Implementations.HttpServer.Security
{
var param = item.Trim().Split('=', 2);
- result[param[0]] = param[1].Trim('"');
+ var value =param[1].Trim('"');
+ result[param[0]] = value;
}
return result;
}
+
+ private static string NormalizeValue(string value)
+ {
+ return string.IsNullOrEmpty(value) ? value : WebUtility.UrlDecode(value);
+ }
}
}