Fix #1898 Ignore bad cookies in getCookie
This commit is contained in:
parent
4a0569f2dc
commit
8dc3627d42
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue