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

Fix cookie path restriction when running on domain root #931

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

takkaria
Copy link
Contributor

#918 introduced a fix for cookies so that if emoncms is running at e.g. domain.net/emoncms, then cookies it saves would be restricted to that path and below. However it also broke logins if Emon is running not in a subdirectory because it set a restriction to the path // rather than /. This pull request fixes that behaviour.

@TrystanLea TrystanLea requested a review from emrysr July 25, 2018 13:44
Copy link
Contributor

@emrysr emrysr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TrystanLea - I've seen this error while running the docker image and this pr fixes the issue. 👍

@TrystanLea TrystanLea merged commit f9d984d into emoncms:master Jul 25, 2018
@TrystanLea
Copy link
Member

Thankyou @takkaria @emrysr

@takkaria takkaria deleted the fix-cookies branch July 25, 2018 14:19
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

Successfully merging this pull request may close these issues.

3 participants