File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,7 @@ public function createHttpRequest()
8181 }
8282
8383 // path & query
84- if (isset ($ _SERVER ['REQUEST_URI ' ])) { // Apache, IIS 6.0
85- $ requestUrl = $ _SERVER ['REQUEST_URI ' ];
86-
87- } elseif (isset ($ _SERVER ['ORIG_PATH_INFO ' ])) { // IIS 5.0 (PHP as CGI ?)
88- $ requestUrl = $ _SERVER ['ORIG_PATH_INFO ' ];
89- if (isset ($ _SERVER ['QUERY_STRING ' ]) && $ _SERVER ['QUERY_STRING ' ] != '' ) {
90- $ requestUrl .= '? ' . $ _SERVER ['QUERY_STRING ' ];
91- }
92- } else {
93- $ requestUrl = '' ;
94- }
95-
84+ $ requestUrl = isset ($ _SERVER ['REQUEST_URI ' ]) ? $ _SERVER ['REQUEST_URI ' ] : '' ;
9685 $ requestUrl = Strings::replace ($ requestUrl , $ this ->urlFilters ['url ' ]);
9786 $ tmp = explode ('? ' , $ requestUrl , 2 );
9887 $ url ->setPath (Strings::fixEncoding (Strings::replace ($ tmp [0 ], $ this ->urlFilters ['path ' ])));
You can’t perform that action at this time.
0 commit comments