[Modify] Throw exception
This commit is contained in:
parent
7a2a2718f3
commit
c57f1dc134
@ -779,7 +779,10 @@ namespace WebSocketSharp.Net
|
|||||||
/// </param>
|
/// </param>
|
||||||
public static string HtmlDecode (string s)
|
public static string HtmlDecode (string s)
|
||||||
{
|
{
|
||||||
if (s == null || s.Length == 0 || !s.Contains ('&'))
|
if (s == null)
|
||||||
|
throw new ArgumentNullException ("s");
|
||||||
|
|
||||||
|
if (s.Length == 0)
|
||||||
return s;
|
return s;
|
||||||
|
|
||||||
var entity = new StringBuilder ();
|
var entity = new StringBuilder ();
|
||||||
|
Loading…
Reference in New Issue
Block a user