Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 66a4342

Browse files
committed
26 parents 7432649 + 85c9491 + 8ec8384 + 004366f + 55a086d + ac7c7af + f02a226 + 00c4ac3 + 3f52720 + 5508474 + 49ed2f6 + d562686 + 67b42b2 + bdb1dae + 9809630 + 7304e37 + 752a5af + 8181c8f + 53bdac2 + c2f9414 + f6341e9 + 57cde95 + c750616 + 293054e + 232b2c8 + 8a12f5a commit 66a4342

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PhpEnvironment/Request.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ protected function detectRequestUri()
247247
if ($httpXRewriteUrl !== null) {
248248
$requestUri = $httpXRewriteUrl;
249249
}
250+
251+
// Check for IIS 7.0 or later with ISAPI_Rewrite
252+
$httpXOriginalUrl = $this->server()->get('HTTP_X_ORIGINAL_URL');
253+
if ($httpXOriginalUrl !== null) {
254+
$requestUri = $httpXOriginalUrl;
255+
}
250256

251257
// IIS7 with URL Rewrite: make sure we get the unencoded url
252258
// (double slash problem).

0 commit comments

Comments
 (0)