영카트 Reflected XSS (17-0789) 취약점 수정
This commit is contained in:
@ -8,6 +8,8 @@ if ($is_admin != 'super')
|
|||||||
$g5['title'] = '메뉴 추가';
|
$g5['title'] = '메뉴 추가';
|
||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
|
$code = isset($code) ? preg_replace('/[^0-9a-zA-Z]/', '', strip_tags($code)) : '';
|
||||||
|
|
||||||
// 코드
|
// 코드
|
||||||
if($new == 'new' || !$code) {
|
if($new == 'new' || !$code) {
|
||||||
$code = base_convert(substr($code,0, 2), 36, 10);
|
$code = base_convert(substr($code,0, 2), 36, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user