From: Habu Date: Sun, 18 Mar 2018 12:28:46 +0000 (+0900) Subject: [fix]REQUEST_URIをSCRIPT_NAMEに変更した時にQUERY_STRINGが失われていた問題を修正 X-Git-Url: http://git.sourceforge.jp/view?p=hengband%2Fweb.git;a=commitdiff_plain;h=cad7b585c34bce34621affec52efd48d2c56e001 [fix]REQUEST_URIをSCRIPT_NAMEに変更した時にQUERY_STRINGが失われていた問題を修正 --- diff --git a/score_ranking.php b/score_ranking.php index cefd38e..963bf6f 100644 --- a/score_ranking.php +++ b/score_ranking.php @@ -47,7 +47,8 @@ function print_navi_page_table($pageinfo) { if (count($pageinfo['navi_list']) <= 1) return; - $href_base = preg_replace('/(&?start=\w+)/', '', filter_input(INPUT_SERVER, 'SCRIPT_NAME')); + $href_base = filter_input(INPUT_SERVER, 'SCRIPT_NAME')."?" + .preg_replace('/(&?start=\w+)/', '', filter_input(INPUT_SERVER, 'QUERY_STRING')); if (strpos($href_base, "?") === FALSE) { $href_base .= "?"; }