From b740ea771da6ee82176cf7b054df20f648408266 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 1 Oct 2018 19:57:48 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/HttpUtility.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index c436d9ff..167da146 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1038,7 +1038,10 @@ namespace WebSocketSharp.Net if (output == null) throw new ArgumentNullException ("output"); - output.Write (HtmlEncode (s)); + if (s.Length == 0) + return; + + output.Write (htmlEncode (s)); } public static string UrlDecode (string s)