-
Notifications
You must be signed in to change notification settings - Fork 97
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
Regex #46
Comments
Hi, thanks. I don't think your proposal would handle I think |
i've never seen it first, but I have seen it last. it's usually the name, first. I think your regex might be not be good on cookies named "secure" or "secure_anything". |
Good point! I think this would be even better then: |
Thank you guys, i decided to go with @rymai's last proposal... |
Sorry, missed this comment. WIthout doingt the beginning of line, that regex has an issue if the value ends in the string secure Mine didn't match just secure on the line but i don't think that's valid |
Sorry, you're right, the following Regex should be more rock-solid: http://rubular.com/r/aGG9VYAWFM Do you think it's ok with this one? |
Just looking at the code as I'm doing something similar
There's a regex here
I'm pretty sure it should be
As the current case does not handle secure being the last piece of the header.
Maybe it's not an issue in how rack or rails does things, but it seems like you could end up with it there twice.
The text was updated successfully, but these errors were encountered: