Re: StringIndexOutOfBoundsException and cookies
Re: StringIndexOutOfBoundsException and cookies
- Subject: Re: StringIndexOutOfBoundsException and cookies
- From: Kaj Hejer <email@hidden>
- Date: Mon, 19 Jan 2004 23:36:59 +0100
At 14:20 -0800 19-01-04, Chuck Hill wrote:
Hi Kaj,
Try this:
The easiest fix is as follows, in Application.java:
public WOResponse dispatchRequest(WORequest request) {
String cookieHeader = request.headerForKey("cookie");
if (cookieHeader != null && /* cookie not ok */) {
String newCookie = /* Fix cookie here */;
request.setHeader(URLEncoder.encode(newCookie, "cookie");
}
return super.dispatchRequest(request);
}
Hi!
Thanks for answering!
I saw something like that in the WO5.1 releasenotes (?).
The hard part here is to write a good /* cookie not ok */ and /* Fix
cookie here */ code :)
Do you think setting WOAcceptMalformedCookies to true make the
StringIndexOutOfBoundsException go away?
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.