Skip to content

Commit

Permalink
Fix #190, fix #198: Use GeneralUtility::_GET() instead of $_GET
Browse files Browse the repository at this point in the history
TYPO3 until TYPO3 version 6.2 adds slashes to values of super global $_GET
To avoid slashes added twice, the GeneralUtility::_GET() API method
must be used to obtain GET variable values.
  • Loading branch information
helhum authored and dmitryd committed Jul 17, 2016
1 parent 1319a52 commit 816f593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Decoder/UrlDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ protected function mergeGetVarsFromDomainsConfiguration() {
*/
protected function mergeWithExistingGetVars(array &$requestVariables) {
if (count($_GET) > 0) {
$flatGetArray = $this->parseQueryStringParameters($this->createQueryStringFromParameters($_GET));
$flatGetArray = $this->parseQueryStringParameters($this->createQueryStringFromParameters(GeneralUtility::_GET()));
ArrayUtility::mergeRecursiveWithOverrule($requestVariables, $flatGetArray);
}
}
Expand Down

0 comments on commit 816f593

Please sign in to comment.