ASF Bugzilla – Attachment 17407 Details for
Bug 38256
Set-cookie headers with no "path" attribute incorrectly processed by CookieManager
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for CookieManager#setCookieFromHeader
38256-CookieManager.patch (text/plain), 643 bytes, created by
William Herndon
on 2006-01-13 08:30:18 UTC
(
hide
)
Description:
Patch for CookieManager#setCookieFromHeader
Filename:
MIME Type:
Creator:
William Herndon
Created:
2006-01-13 08:30:18 UTC
Size:
643 bytes
patch
obsolete
>326,336c326,329 >< String path = url.getPath(); >< if (path.length() == 0) { >< path = "/"; // $NON-NLS-1$ default if no path specified >< } else { >< int lastSlash = path.lastIndexOf("/");// $NON-NLS-1$ >< if (lastSlash > 0) {// Must be after initial character >< // Upto, but not including, trailing slash for Set-Cookie: >< // (Set-Cookie2: would need the trailing slash as well >< path=path.substring(0,lastSlash); >< } >< } >--- >> >> // BUG 38256 - Simply sets the root path to cover cases where there is no >> // path attribute in the set-cookie header >> String path = "/";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38256
:
17406
| 17407 |
17408