From e2cc195808e9d6e650ea902eafe66b37014e0cc6 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 28 Sep 2018 19:50:28 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/HttpUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index a3dfb9cf..17e6c923 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -857,7 +857,7 @@ namespace WebSocketSharp.Net if (output == null) throw new ArgumentNullException ("output"); - output.Write (HtmlAttributeEncode (s)); + output.Write (s.Length > 0 ? htmlAttributeEncode (s) : s); } ///