From dca1e671053e11578625d0601c3f8dd02d5fc4bc Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 3 Mar 2015 09:50:00 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=84=EB=A9=94=EC=9D=B8=EC=97=90=20port=20?= =?UTF-8?q?=EC=9E=88=EC=9D=84=20=EB=95=8C=20=EB=8C=80=EC=9D=91=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/tail.php | 5 ++++- tail.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mobile/tail.php b/mobile/tail.php index 6ada54bbd..ceecca3fd 100644 --- a/mobile/tail.php +++ b/mobile/tail.php @@ -28,7 +28,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if(G5_DEVICE_BUTTON_DISPLAY && G5_IS_MOBILE) { $seq = 0; $p = parse_url(G5_URL); - $href = $p['scheme'].'://'.$p['host'].$_SERVER['PHP_SELF']; + $href = $p['scheme'].'://'.$p['host']; + if(isset($p['port']) && $p['port']) + $href .= ':'.$p['port']; + $href .= $_SERVER['PHP_SELF']; if($_SERVER['QUERY_STRING']) { $sep = '?'; foreach($_GET as $key=>$val) { diff --git a/tail.php b/tail.php index f4b57a4c9..8418253c6 100644 --- a/tail.php +++ b/tail.php @@ -41,7 +41,10 @@ if (G5_IS_MOBILE) { if(G5_DEVICE_BUTTON_DISPLAY && !G5_IS_MOBILE) { $seq = 0; $p = parse_url(G5_URL); - $href = $p['scheme'].'://'.$p['host'].$_SERVER['PHP_SELF']; + $href = $p['scheme'].'://'.$p['host']; + if(isset($p['port']) && $p['port']) + $href .= ':'.$p['port']; + $href .= $_SERVER['PHP_SELF']; if($_SERVER['QUERY_STRING']) { $sep = '?'; foreach($_GET as $key=>$val) {