Applied asp cookie patch submitted by Jan van der Lugt

This commit is contained in:
dotneteer 2012-11-26 20:14:33 -08:00
parent 7d903930bf
commit 2e5b85e798
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,9 @@ namespace Dlrsoft.Asp.BuiltInObjects
else else
cookie = _cookiecollection[(string)key]; cookie = _cookiecollection[(string)key];
if (cookie == null)
return "";
if (_request) if (_request)
return new AspReadCookie(cookie); return new AspReadCookie(cookie);
else else

View file

@ -50,7 +50,7 @@ namespace Dlrsoft.Asp
public override string ToString() public override string ToString()
{ {
if (_cookie == null) return null; if (_cookie == null) return "";
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
bool first = true; bool first = true;