Skip to content

encode '(' and ')' at cookie value #92

@mastojun

Description

@mastojun

If server work as RFC 2109 (from RFC 2068). ( and ) characters in http header (also cookie value) are invalid

If send cookie value has ( or ) to tomcat 7.x. the value was cut before ( or ).

the reason was this code block.

So i suggest to add the line

value = value.replace(/[\(\)]/g, escape);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions