aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Stocchi <tommasostocchi@outlook.com>2020-12-14 13:07:39 +0100
committerTommaso Stocchi <tommasostocchi@outlook.com>2020-12-14 13:07:39 +0100
commit064a9cedbd205594fa529ff996b2cd359c5be07c (patch)
tree6bb5905f531645aeb1961a2d9c63274a602b5889
parentcb36feaa0f04be60f32a1a16b104d7634023bce6 (diff)
No htlml encoding on server side
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index 024404ceb..ce2644b8d 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -275,17 +275,11 @@ namespace Emby.Server.Implementations.HttpServer.Security
if (param.Length == 2)
{
- var value = NormalizeValue(param[1].Trim('"'));
- result[param[0]] = value;
+ result[param[0]] = param[1].Trim('"');
}
}
return result;
}
-
- private static string NormalizeValue(string value)
- {
- return string.IsNullOrEmpty(value) ? value : WebUtility.HtmlEncode(value);
- }
}
}