From f54d245a3c16d21c5e9417b324bec639050ee6f9 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 24 Oct 2019 16:22:29 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index eeeb05ec7..1e4ed0d6e 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -21,7 +21,8 @@ function get_microtime() function get_paging($write_pages, $cur_page, $total_page, $url, $add="") { //$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url); - $url = preg_replace('#&page=[0-9]*#', '', $url) . '&page='; + $url = preg_replace('#(&)?page=[0-9]*#', '', $url); + $url .= substr($url, -1) === '?' ? 'page=' : '&page='; $str = ''; if ($cur_page > 1) {