File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919// Get URI for this request, strip leading slash
2020// See langchooser.inc for more info on STRIPPED_URI
2121$ URI = substr ($ _SERVER ['STRIPPED_URI ' ], 1 );
22- $ queryString = $ _SERVER ['QUERY_STRING ' ] ?? '' ;
22+ $ uriParts = explode ('? ' , $ URI , 2 );
23+ $ URI = $ uriParts [0 ];
24+ $ queryString = isset ($ uriParts [1 ]) ? html_entity_decode ($ uriParts [1 ], ENT_QUOTES , 'UTF-8 ' ) : '' ;
2325
2426// ============================================================================
2527// Mozilla Search Sidebar plugin resource file handling (need to be mirror
3840
3941// ============================================================================
4042// BC: handle bugs.php moved completely to bugs.php.net
41- if (preg_match ( " !^ bugs.php\\ ?(.+)$! " , $ URI , $ array ) ) {
42- mirror_redirect ("https://bugs.php.net/? $ array [ 1 ] " );
43+ if ($ URI === ' bugs.php ' && $ queryString !== '' ) {
44+ mirror_redirect ("https://bugs.php.net/? $ queryString " );
4345}
4446
4547// ============================================================================
You can’t perform that action at this time.
0 commit comments