Skip to content

The Free Software Media System - Server Backend & API

No htlml encoding on server side

Tommaso Stocchi064a9cedbd20
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index 024404ceb0..ce2644b8db 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);
- }
}
}