그누보드 5.0.23 수정 내역 적용
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
<script type="text/javascript" src="./js/SE2B_Configuration_General.js" charset="utf-8"></script> <!-- 설정 파일 -->
|
||||
<script type="text/javascript" src="./js/SE2BasicCreator.js?v3" charset="utf-8"></script>
|
||||
|
||||
<script src='js/smarteditor2.min.js' charset='utf-8'></script>
|
||||
<script src='js/smarteditor2.min.js?v2' charset='utf-8'></script>
|
||||
<script src='photo_uploader/plugin/hp_SE2M_AttachQuickPhoto.js' charset='utf-8'></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -12138,9 +12138,19 @@ nhn.husky.SE2M_Hyperlink = jindo.$Class({
|
||||
|
||||
var sResult;
|
||||
if (sWWWURL){
|
||||
sResult = '<a href="http://'+sWWWURL+'">'+sURL+'</a>';
|
||||
var exp = /([-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)/gi;
|
||||
if( sWWWURL.match(exp) ){
|
||||
sResult = sWWWURL.replace(exp, '<a href="http://$1" >$1</a>');
|
||||
} else {
|
||||
sResult = '<a href="http://'+sWWWURL+'">'+sURL+'</a>';
|
||||
}
|
||||
} else {
|
||||
sResult = '<a href="'+sHTTPURL+'">'+sURL+'</a>';
|
||||
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
|
||||
if( sHTTPURL.match(exp) ){
|
||||
sResult = sHTTPURL.replace(exp,"<a href='$1'>$1</a>");
|
||||
} else {
|
||||
sResult = '<a href="'+sHTTPURL+'">'+sURL+'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
return sBreaker+sResult;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -26,11 +26,11 @@ function make_mp3()
|
||||
|
||||
file_put_contents(G5_PATH.'/'.$mp3_file, $contents);
|
||||
|
||||
// 지난 캡챠 파일 삭제 (100번중에 한번만 실행)
|
||||
// 지난 캡챠 파일 삭제
|
||||
if (rand(0,99) == 0) {
|
||||
foreach (glob(G5_PATH.'/data/cache/kcaptcha-*.mp3') as $file) {
|
||||
if (filemtime($file) + 86400 < G5_SERVER_TIME) {
|
||||
unset($file);
|
||||
@unlink($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
plugin/kcpcert/bin/ct_cli_x64
Executable file
BIN
plugin/kcpcert/bin/ct_cli_x64
Executable file
Binary file not shown.
@ -101,8 +101,12 @@ if( $cert_enc_use == "Y" )
|
||||
if ( $ct_cert->check_valid_hash ( $home_dir , $dn_hash , $veri_str ) != "1" )
|
||||
{
|
||||
// 검증 실패시 처리 영역
|
||||
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||
$bin_exe = '/bin/ct_cli';
|
||||
else
|
||||
$bin_exe = '/bin/ct_cli_x64';
|
||||
|
||||
echo "dn_hash 변조 위험있음 (".G5_KCPCERT_PATH."/bin/ct_cli 파일에 실행권한이 있는지 확인하세요.)";
|
||||
echo "dn_hash 변조 위험있음 (".G5_KCPCERT_PATH.$bin_exe." 파일에 실행권한이 있는지 확인하세요.)";
|
||||
exit;
|
||||
// 오류 처리 ( dn_hash 변조 위험있음)
|
||||
}
|
||||
|
||||
@ -16,19 +16,19 @@ class C_CT_CLI
|
||||
// 변수 초기화 영역
|
||||
function mf_clear()
|
||||
{
|
||||
$this->m_dec_data="";
|
||||
$this->m_dec_data="";
|
||||
}
|
||||
|
||||
// hash 처리 영역
|
||||
function make_hash_data( $home_dir , $str )
|
||||
{
|
||||
$hash_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" ,
|
||||
$hash_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" ,
|
||||
"lf_CT_CLI__make_hash_data",
|
||||
$str
|
||||
);
|
||||
|
||||
if ( $hash_data == "" ) { $hash_data = "HS01"; }
|
||||
|
||||
|
||||
return $hash_data;
|
||||
}
|
||||
|
||||
@ -49,7 +49,12 @@ class C_CT_CLI
|
||||
// 암호화 인증데이터 복호화
|
||||
function decrypt_enc_cert ( $home_dir, $site_cd , $cert_no , $enc_cert_data , $opt)
|
||||
{
|
||||
$dec_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" ,
|
||||
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||
$bin_exe = $home_dir . '/bin/ct_cli';
|
||||
else
|
||||
$bin_exe = $home_dir . '/bin/ct_cli_x64';
|
||||
|
||||
$dec_data = $this -> mf_exec( $bin_exe ,
|
||||
"lf_CT_CLI__decrypt_enc_cert" ,
|
||||
$site_cd ,
|
||||
$cert_no ,
|
||||
|
||||
Reference in New Issue
Block a user