浏览代码

No htlml encoding on server side

Tommaso Stocchi 4 年之前
父节点
当前提交
064a9cedbd
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

+ 1 - 7
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);
-        }
     }
 }