[Modify] Throw exception
This commit is contained in:
parent
74bb695fa0
commit
4b2e166481
@ -819,7 +819,10 @@ namespace WebSocketSharp.Net
|
||||
|
||||
public static string HtmlAttributeEncode (string s)
|
||||
{
|
||||
if (s == null || s.Length == 0)
|
||||
if (s == null)
|
||||
throw new ArgumentNullException ("s");
|
||||
|
||||
if (s.Length == 0)
|
||||
return s;
|
||||
|
||||
var buff = new StringBuilder ();
|
||||
|
Loading…
Reference in New Issue
Block a user