본문으로 건너뛰기

뱅크다 보안 강화.

PHP 8 · GODO25
변경 파일 수: 1개
변경 파일 목록
1
변경 파일 코드
추가삭제
Component/Bankda/BankdaGhostDepositor.php+3-21
변경 전BankdaGhostDepositor.php
throw new AlertCloseException('사용할 수 없습니다.');
}
 
$eval_json = array();
 
$_quoted = false;
$_out = '$eval_json=';
 
for ($i=0,$max=strlen($json); $i<$max; $i++) {
 
if (! $_quoted) {
if ($json[$i] == '{') $_out .= ' array(';
else if ($json[$i] == '}') $_out .= ')';
else if ($json[$i] == ':') $_out .= '=>';
else if ($json[$i] == '[') $_out .= ' array(';
else if ($json[$i] == ']') $_out .= ')';
else $_out .= $json[$i];
} else {
$_out .= $json[$i];
}
 
if ($json[$i] == '"') $_quoted = ! $_quoted;
}
 
@eval($_out.';');
 
$paging = '';
$loop = [];
$_page = [];
 
변경 후BankdaGhostDepositor.php
throw new AlertCloseException('사용할 수 없습니다.');
}
 
$eval_json = json_decode($json, true);
if (is_array($eval_json) === false) {
$eval_json = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
}
 
 
 
$paging = '';
$loop = [];
$_page = [];