Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Domain _GET vars can be overridden #31

Open
andreaswolf opened this issue Feb 8, 2017 · 4 comments
Open

Domain _GET vars can be overridden #31

andreaswolf opened this issue Feb 8, 2017 · 4 comments

Comments

@andreaswolf
Copy link

When a domain has configured a $_GET var (most prominently L), a visitor can still set that variable to a different value, leading e.g. to a different language being shown. The decode step will then not set the preconfigured value (see adjustConfigurationByHostDecode()).

IMO if a variable is defined in the domain record, it should not be changeable from the outside, or at least there should be an option to declare the value immutable.

@helhum
Copy link
Owner

helhum commented Feb 8, 2017

domain record? you mean the domain realurl config right?

@helhum
Copy link
Owner

helhum commented Feb 8, 2017

mind creating a pull request for this?

@andreaswolf
Copy link
Author

andreaswolf commented Feb 9, 2017

domain record? you mean the domain realurl config right?

Right, of course… was a little too late for me :)

mind creating a pull request for this?

Sure, can do that. In general I consider this a bug, but as the domains feature of RealURL is AFAIK only documented in a blog post, it is unclear if it is probably intended. I would therefore add an option to the decode entry with a list of immutable GET vars, which is checked in the aforementioned method.

@andreaswolf
Copy link
Author

We discovered a bug with my approach, leading to the preview feature not working anymore. This should be fixed, I’ll create a pull request afterwards.

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

No branches or pull requests

2 participants