|
|
@@ -392,6 +392,14 @@ class Zend_Controller_Request_Http extends Zend_Controller_Request_Abstract
|
|
|
if ($requestUri === null) {
|
|
|
if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first so IIS will catch
|
|
|
$requestUri = $_SERVER['HTTP_X_REWRITE_URL'];
|
|
|
+ } elseif (
|
|
|
+ // IIS7 with URL Rewrite: make sure we get the unencoded url (double slash problem)
|
|
|
+ isset($_SERVER['IIS_WasUrlRewritten'])
|
|
|
+ && $_SERVER['IIS_WasUrlRewritten'] == '1'
|
|
|
+ && isset($_SERVER['UNENCODED_URL'])
|
|
|
+ && $_SERVER['UNENCODED_URL'] != ''
|
|
|
+ ) {
|
|
|
+ $requestUri = $_SERVER['UNENCODED_URL'];
|
|
|
} elseif (isset($_SERVER['REQUEST_URI'])) {
|
|
|
$requestUri = $_SERVER['REQUEST_URI'];
|
|
|
// Http proxy reqs setup request uri with scheme and host [and port] + the url path, only use url path
|