8000 [HttpFoundation] made X_REWRITE_URL only available on Windows platforms · fh-github/symfony@a74ae9d · GitHub
[go: up one dir, main page]

Skip to content

Commit a74ae9d

Browse files
committed
[HttpFoundation] made X_REWRITE_URL only available on Windows platforms
1 parent 15f19e5 commit a74ae9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ protected function prepareRequestUri()
10571057
{
10581058
$requestUri = '';
10591059

1060-
if ($this->headers->has('X_REWRITE_URL')) {
1060+
if ($this->headers->has('X_REWRITE_URL') && false !== stripos(PHP_OS, 'WIN')) {
10611061
// check this first so IIS will catch
10621062
$requestUri = $this->h 3F46 eaders->get('X_REWRITE_URL');
10631063
} elseif ($this->server->get('IIS_WasUrlRewritten') == '1' && $this->server->get('UNENCODED_URL') != '') {

0 commit comments

Comments
 (0)
0