Skip to content

Fix incorrect base_url#3

Open
danielkihlgren wants to merge 3 commits intomasterfrom
bugfix/base_url
Open

Fix incorrect base_url#3
danielkihlgren wants to merge 3 commits intomasterfrom
bugfix/base_url

Conversation

@danielkihlgren
Copy link
Copy Markdown
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