8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f19e5 commit a74ae9dCopy full SHA for a74ae9d
src/Symfony/Component/HttpFoundation/Request.php
@@ -1057,7 +1057,7 @@ protected function prepareRequestUri()
1057
{
1058
$requestUri = '';
1059
1060
- if ($this->headers->has('X_REWRITE_URL')) {
+ if ($this->headers->has('X_REWRITE_URL') && false !== stripos(PHP_OS, 'WIN')) {
1061
// check this first so IIS will catch
1062
$requestUri = $this->headers->get('X_REWRITE_URL');
1063
} elseif ($this->server->get('IIS_WasUrlRewritten') == '1' && $this->server->get('UNENCODED_URL') != '') {
0 commit comments