提交 620d6afe 编写于 作者: M Marek Habersack

[asp.net] FormsAuthenticationTicket.FromByteArray stops early if it is passed a null parameter

上级 bb4e4e1a
......@@ -87,6 +87,9 @@ namespace System.Web.Security
internal static FormsAuthenticationTicket FromByteArray (byte [] bytes)
{
if (bytes == null)
throw new ArgumentNullException ("bytes");
MemoryStream ms = new MemoryStream (bytes);
BinaryReader reader = new BinaryReader (ms);
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册