잘못된 코드 수정
This commit is contained in:
@@ -47,5 +47,5 @@ if ($w == 's') {
|
||||
} else
|
||||
alert('w 값이 제대로 넘어오지 않았습니다.');
|
||||
|
||||
goto_url(G5_HTTP_BBS_URL.'/board.php?'.$qstr);
|
||||
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?'.$qstr));
|
||||
?>
|
||||
|
||||
@@ -17,8 +17,8 @@ function g54_return_invalid_password($bool, $type, $wr){
|
||||
return $bool;
|
||||
}
|
||||
|
||||
function g54_check_bbs_password($type, $wr, $qstr){
|
||||
if($type === 'bbs' && $wr['wr_password'] && isset($_POST['wr_password'])) {
|
||||
function g54_check_bbs_password($type, $wr, $qstr=''){
|
||||
if($type === 'bbs' && (isset($wr['wr_password']) && $wr['wr_password']) && isset($_POST['wr_password'])) {
|
||||
|
||||
global $bo_table, $w;
|
||||
|
||||
@@ -31,7 +31,7 @@ function g54_check_bbs_password($type, $wr, $qstr){
|
||||
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$wr['wr_id'];
|
||||
set_session($ss_name, TRUE);
|
||||
}
|
||||
goto_url(G5_HTTP_BBS_URL.'/board.php?'.$qstr);
|
||||
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?'.$qstr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -157,7 +157,8 @@ function short_url_clean($string_url, $add_qry=''){
|
||||
|
||||
$str_path = isset($url['path']) ? $url['path'] : '';
|
||||
$http = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 'https://' : 'http://';
|
||||
$host = $http.$url['host'].str_replace($array_file_paths, '', $str_path);
|
||||
$port = (isset($url['port']) && ($url['port']!==80 || $url['port']!==443)) ? ':'.$url['port'] : '';
|
||||
$host = $http.$url['host'].$port.str_replace($array_file_paths, '', $str_path);
|
||||
}
|
||||
|
||||
$add_param = '';
|
||||
|
||||
Reference in New Issue
Block a user