Skip to content

Commit 2988978

Browse files
committed
RequestFactory: removed support for ORIG_PATH_INFO used by old IIS (BC break)
see #31
1 parent 578593f commit 2988978

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Http/RequestFactory.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,7 @@ public function createHttpRequest()
8181
}
8282

8383
// path & query
84-
if (isset($_SERVER['REQUEST_URI'])) { // Apache, IIS 6.0
85-
$requestUrl = $_SERVER['REQUEST_URI'];
86-
87-
} elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0 (PHP as CGI ?)
88-
$requestUrl = $_SERVER['ORIG_PATH_INFO'];
89-
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != '') {
90-
$requestUrl .= '?' . $_SERVER['QUERY_STRING'];
91-
}
92-
} else {
93-
$requestUrl = '';
94-
}
95-
84+
$requestUrl = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/';
9685
$requestUrl = Strings::replace($requestUrl, $this->urlFilters['url']);
9786
$tmp = explode('?', $requestUrl, 2);
9887
$path = Strings::fixEncoding(Strings::replace($tmp[0], $this->urlFilters['path']));

0 commit comments

Comments
 (0)