File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -193,15 +193,15 @@ function ($matches) {
193
193
* Combine url components into a url.
194
194
*/
195
195
private function unparseUrl ($ parsed_url ) {
196
- $ scheme = isset ($ parsed_url ['scheme ' ]) ? $ parsed_url ['scheme ' ] . ':// ' : '' ;
197
- $ user = isset ($ parsed_url ['user ' ]) ? $ parsed_url ['user ' ] : '' ;
198
- $ pass = isset ($ parsed_url ['pass ' ]) ? ': ' . $ parsed_url ['pass ' ] : '' ;
199
- $ pass = ($ user || $ pass ) ? $ pass . '@ ' : '' ;
200
- $ host = isset ($ parsed_url ['host ' ]) ? $ parsed_url ['host ' ] : '' ;
201
- $ port = isset ($ parsed_url ['port ' ]) ? ': ' . $ parsed_url ['port ' ] : '' ;
202
- $ path = isset ($ parsed_url ['path ' ]) ? $ parsed_url ['path ' ] : '' ;
203
- $ query = isset ($ parsed_url ['query ' ]) ? '? ' . $ parsed_url ['query ' ] : '' ;
204
- $ fragment = isset ($ parsed_url ['fragment ' ]) ? '# ' . $ parsed_url ['fragment ' ] : '' ;
196
+ $ scheme = isset ($ parsed_url ['scheme ' ]) ? $ parsed_url ['scheme ' ] . ':// ' : '' ;
197
+ $ user = isset ($ parsed_url ['user ' ]) ? $ parsed_url ['user ' ] : '' ;
198
+ $ pass = isset ($ parsed_url ['pass ' ]) ? ': ' . $ parsed_url ['pass ' ] : '' ;
199
+ $ pass = ($ user || $ pass ) ? $ pass . '@ ' : '' ;
200
+ $ host = isset ($ parsed_url ['host ' ]) ? $ parsed_url ['host ' ] : '' ;
201
+ $ port = isset ($ parsed_url ['port ' ]) ? ': ' . $ parsed_url ['port ' ] : '' ;
202
+ $ path = isset ($ parsed_url ['path ' ]) ? $ parsed_url ['path ' ] : '' ;
203
+ $ query = isset ($ parsed_url ['query ' ]) ? '? ' . $ parsed_url ['query ' ] : '' ;
204
+ $ fragment = isset ($ parsed_url ['fragment ' ]) ? '# ' . $ parsed_url ['fragment ' ] : '' ;
205
205
$ unparsed_url = $ scheme . $ user . $ pass . $ host . $ port . $ path . $ query . $ fragment ;
206
206
return $ unparsed_url ;
207
207
}
You can’t perform that action at this time.
0 commit comments