From 5c7a868514f4ac2d06fdae47b7127edf5ff7fc0b Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 7 Oct 2018 20:14:15 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index f2afb577..d24db06d 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -134,7 +134,7 @@ namespace WebSocketSharp.Net : -1; } - private static string htmlEncode (string s, bool attribute) + private static string htmlEncode (string s, bool minimal) { var buff = new StringBuilder (); @@ -148,7 +148,7 @@ namespace WebSocketSharp.Net ? "<" : c == '>' ? ">" - : !attribute && c > 159 + : !minimal && c > 159 ? String.Format ("&#{0};", (int) c) : c.ToString () );