diff --git a/adm/board_form.php b/adm/board_form.php
index ae69b945c..1cc440d6e 100644
--- a/adm/board_form.php
+++ b/adm/board_form.php
@@ -708,7 +708,7 @@ $frm_submit .= '';
|
-
+
|
@@ -721,7 +721,7 @@ $frm_submit .= '';
|
|
-
+
|
diff --git a/common.php b/common.php
index b689a7791..5e528a392 100644
--- a/common.php
+++ b/common.php
@@ -35,7 +35,10 @@ function g5_path()
$port = $_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '';
$http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 's' : '') . '://';
$user = str_replace(str_replace($document_root, '', $_SERVER['SCRIPT_FILENAME']), '', $_SERVER['SCRIPT_NAME']);
- $result['url'] = $http.(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']).$port.$user.$root;
+ $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];
+ if(isset($_SERVER['HTTP_HOST']) && preg_match('/:[0-9]+$/', $host))
+ $host = preg_replace('/:[0-9]+$/', '', $host);
+ $result['url'] = $http.$host.$port.$user.$root;
return $result;
}
diff --git a/mobile/skin/board/basic/view_comment.skin.php b/mobile/skin/board/basic/view_comment.skin.php
index 946d56c44..d3aa7fe05 100644
--- a/mobile/skin/board/basic/view_comment.skin.php
+++ b/mobile/skin/board/basic/view_comment.skin.php
@@ -23,7 +23,7 @@ var char_max = parseInt(); // 최대
?>
|