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 incorrect base_url #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix incorrect base_url #3

wants to merge 3 commits into from

Conversation

danielkihlgren
Copy link
Collaborator

On pages bli-medlem and aktivering the base url is incorrect where it points to e.g. http://localhost/aktivering/ instead of http://localhost/. This makes the language image not to show correctly.
This is also a security fix, HTTP_HOST variable can be modified by the user request, so best practice is to avoid using it or at least have a white list if used.
More info about security issues can be found on http://shiflett.org/blog/2006/mar/server-name-versus-http-host

Since this modifies the base_url it must be configured in config.inc where the application is deployed before doing this merge.

On pages bli-medlem and aktivering the base url is incorrect where it points to e.g. http://localhost/aktivering/ instead of http://localhost/. This makes the language image not to show correctly.
This is also a security fix, HTTP_HOST variable can be modified by the user request, so best practice is to avoid using it or at least have a white list if used.
More info about security issues can be found on http://shiflett.org/blog/2006/mar/server-name-versus-http-host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant