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

Always apply the IE security fix in the Environment class #7453

Merged
merged 1 commit into from
Nov 18, 2014

Conversation

leofeyer
Copy link
Member

Apply the IE security fix to both Environment::get('queryString') and Environment::get('requestUri') and use Environment::get('queryString') instead of $_SERVER['QUERY_STRING'].

Apply the IE security fix to both Environment::get('queryString') and Environment::get('requestUri') and use Environment::get('queryString') instead of $_SERVER['QUERY_STRING'].
@leofeyer
Copy link
Member Author

@contao/developers Please review.

@leofeyer leofeyer added this to the 3.2.16 milestone Nov 18, 2014
@ausi
Copy link
Member

ausi commented Nov 18, 2014

LGTM

@Toflar
Copy link
Member

Toflar commented Nov 18, 2014

👍

1 similar comment
@aschempp
Copy link
Member

👍


// Do not urldecode() here (thanks to Russ McRee)!
return $strRequest;
return preg_replace('/^' . preg_quote(TL_PATH, '/') . '\/?/', '', static::get('requestUri'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Sollte man hier nicht ggf. direkt static::requestUri() callen?

Copy link
Member Author

Choose a reason for hiding this comment

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

Überall sonst wird auch mit static::get() gearbeitet. Vermutlich, damit der Class-Cache greift.

Copy link
Contributor

Choose a reason for hiding this comment

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

Achso okay, daran hab ich net gedacht ^^ dann Feuer frei!

@tristanlins
Copy link
Contributor

Bis auf eine kleine Anmerkung sieht das gut aus 👍

@leofeyer leofeyer merged commit 913c62e into hotfix/3.2.16 Nov 18, 2014
@leofeyer leofeyer deleted the feature/ie-security-fix branch November 18, 2014 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants