Skip to content
This repository

Added support for IIS 7 + ISAPI_Rewrite #1424

Merged
merged 1 commit into from almost 2 years ago

3 participants

Ian Unruh Evan Coury Matthew Weier O'Phinney
Ian Unruh

Added support to Zend\HTTP\PhpEnvironment\Request for ISAPI_Rewrite (used with IIS 7.0 and 7.5)

Evan Coury
Collaborator

Related issue: ZF-4491.

Matthew Weier O'Phinney weierophinney merged commit 256f955 into from June 13, 2012
Matthew Weier O'Phinney weierophinney closed this June 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 31, 2012
Ian Unruh Update library/Zend/Http/PhpEnvironment/Request.php 256f955
This page is out of date. Refresh to see the latest.
6  library/Zend/Http/PhpEnvironment/Request.php
@@ -247,6 +247,12 @@ protected function detectRequestUri()
247 247
         if ($httpXRewriteUrl !== null) {
248 248
             $requestUri = $httpXRewriteUrl;
249 249
         }
  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
+        }
250 256
        
251 257
         // IIS7 with URL Rewrite: make sure we get the unencoded url
252 258
         // (double slash problem).
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.