@@ 399-404 (lines=6) @@ | ||
396 | // IIS with ISAPI_Rewrite |
|
397 | $requestUri = $this->getRequest()->headers->get('X_REWRITE_URL'); |
|
398 | $this->getRequest()->headers->remove('X_REWRITE_URL'); |
|
399 | } elseif ($this->getRequest()->server->get('IIS_WasUrlRewritten') == '1' && $this->getRequest()->server->get('UNENCODED_URL') != '') { |
|
400 | // IIS7 with URL Rewrite: make sure we get the unencoded URL (double slash problem) |
|
401 | $requestUri = $this->getRequest()->server->get('UNENCODED_URL'); |
|
402 | $this->getRequest()->server->remove('UNENCODED_URL'); |
|
403 | $this->getRequest()->server->remove('IIS_WasUrlRewritten'); |
|
404 | } elseif ($this->getRequest()->server->has('REQUEST_URI')) { |
|
405 | $requestUri = $this->getRequest()->server->get('REQUEST_URI'); |
|
406 | // HTTP proxy reqs setup request URI with scheme and host [and port] + the URL path, only use URL path |
|
407 | $schemeAndHttpHost = $this->getSchemeAndHttpHost(); |
|
@@ 411-418 (lines=8) @@ | ||
408 | if (strpos($requestUri, $schemeAndHttpHost) === 0) { |
|
409 | $requestUri = substr($requestUri, strlen($schemeAndHttpHost)); |
|
410 | } |
|
411 | } elseif ($this->getRequest()->server->has('ORIG_PATH_INFO')) { |
|
412 | // IIS 5.0, PHP as CGI |
|
413 | $requestUri = $this->getRequest()->server->get('ORIG_PATH_INFO'); |
|
414 | if ('' != $this->getRequest()->server->get('QUERY_STRING')) { |
|
415 | $requestUri .= '?' . $this->getRequest()->server->get('QUERY_STRING'); |
|
416 | } |
|
417 | $this->getRequest()->server->remove('ORIG_PATH_INFO'); |
|
418 | } |
|
419 | // normalize the request URI to ease creating sub-requests from this request |
|
420 | $this->getRequest()->server->set('REQUEST_URI', $requestUri); |
|
421 | return $requestUri; |