Fix #1898 Ignore bad cookies in getCookie

This commit is contained in:
Greg Wilkins 2017-10-25 10:56:13 +11:00
parent 4a0569f2dc
commit 8dc3627d42
1 changed files with 17 additions and 10 deletions

View File

@ -121,6 +121,8 @@ public class Cookies extends CookieCutter
@Override @Override
protected void addCookie(String name, String value, String domain, String path, int version, String comment) protected void addCookie(String name, String value, String domain, String path, int version, String comment)
{
try
{ {
Cookie cookie = new Cookie(name,value); Cookie cookie = new Cookie(name,value);
if (domain!=null) if (domain!=null)
@ -133,5 +135,10 @@ public class Cookies extends CookieCutter
cookie.setComment(comment); cookie.setComment(comment);
_cookieList.add(cookie); _cookieList.add(cookie);
} }
catch(Exception e)
{
LOG.debug(e);
}
}
} }