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) {