Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie name with illegal characters #159

Open
PabloMG opened this issue Feb 20, 2019 · 1 comment
Open

Cookie name with illegal characters #159

PabloMG opened this issue Feb 20, 2019 · 1 comment
Labels

Comments

@PabloMG
Copy link

PabloMG commented Feb 20, 2019

The Cookie constructor only admits cookie names that are compliant with RFC 2109. The servlet name is used to rename the cookie in getCookieNamePrefix, but if the servlet name contains illegal characters (most likely a white space), then the constructor will throw an exception.

I suggest that illegal characters are replaced by some other character while renaming the cookie.

Thanks.

@dsmiley
Copy link
Collaborator

dsmiley commented Mar 7, 2019

Thanks for reporting. PR welcome

@dsmiley dsmiley added the bug label Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants