Bladeren bron

ZF-7767
- Fixed Zend_Controller Http request to use the unencoded url in II7 with Url Rewrite 1.1

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18308 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 jaren geleden
bovenliggende
commit
143bdd8c3b

+ 8 - 0
library/Zend/Controller/Request/Http.php

@@ -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

+ 0 - 0
tests/Zend/Auth/Adapter/OpenId/_files/assoc.lock


+ 0 - 0
tests/Zend/Auth/Adapter/OpenId/_files/discovery.lock


+ 0 - 0
tests/Zend/Auth/Adapter/OpenId/_files/nonce.lock


+ 1 - 0
tests/Zend/Auth/Adapter/OpenId/_files/nonce_9f11599cc1f088b7c358f33610cb126c

@@ -0,0 +1 @@
+http://www.myopenid.com/;2007-08-14T12:52:33Z46c1a59124ffe