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

uri_escape / to %2F in cookie path #83

Closed
denis-ignatenko opened this issue May 20, 2019 · 2 comments
Closed

uri_escape / to %2F in cookie path #83

denis-ignatenko opened this issue May 20, 2019 · 2 comments

Comments

@denis-ignatenko
Copy link

Function uri_escape escape / to %2F. Affects setting cookie path.

res = string.gsub(str, '[^a-zA-Z0-9_]',

Possible fix:
res = string.gsub(str, '[^a-zA-Z0-9_/]'

@Totktonada
Copy link
Member

PR #82 is about that as I see.

@Totktonada
Copy link
Member

Now there is a raw option is the :setcookie() method. See 42e3002 and f97518b. I hope it resolves the problem. If it is not so or if you have more on the topic, don't hesitate to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants