Skip to content

Commit

Permalink
Merge branch '4.0' into 4.1
Browse files Browse the repository at this point in the history
* 4.0:
  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
  • Loading branch information
nicolas-grekas committed Aug 1, 2018
2 parents 5f10119 + 7dc9f88 commit 7d93e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ private function getTrustedValues($type, $ip = null)
foreach ($parts as $subParts) {
$assoc = HeaderUtils::combine($subParts);
if (isset($assoc[$param])) {
$forwardedValues[] = $assoc[$param];
$forwardedValues[] = self::HEADER_X_FORWARDED_PORT === $type ? substr_replace($assoc[$param], '0.0.0.0', 0, strrpos($assoc[$param], ':')) : $assoc[$param];
}
}
}
Expand Down

0 comments on commit 7d93e35

Please sign in to comment.