Index: trunk/phase3/includes/Setup.php |
— | — | @@ -182,7 +182,12 @@ |
183 | 183 | wfDebug( "\n\nStart command line script $self\n" ); |
184 | 184 | } else { |
185 | 185 | wfDebug( "Start request\n\n" ); |
186 | | - wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" ); |
| 186 | + # Output the REQUEST_URI. This is not supported by IIS in rewrite mode, |
| 187 | + # so use an alternative |
| 188 | + $requestUri = isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : |
| 189 | + ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ? $_SERVER['HTTP_X_ORIGINAL_URL'] : |
| 190 | + $_SERVER['PHP_SELF'] ); |
| 191 | + wfDebug( "{$_SERVER['REQUEST_METHOD']} {$requestUri}\n" ); |
187 | 192 | |
188 | 193 | if ( $wgDebugPrintHttpHeaders ) { |
189 | 194 | $headerOut = "HTTP HEADERS:\n"; |