ISCS 함수 버그 수정

This commit is contained in:
wonipapa 2017-09-01 17:49:18 +09:00
parent 1d9fa83714
commit 5f55eb458f
2 changed files with 2 additions and 2 deletions

View File

@ -932,9 +932,9 @@ function GetEPGFromIscs($ChannelInfo) {
endif;
else :
$response = $data['html'];
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
$pattern = '/<td class="name">(.*)<\/td>/';
$response = preg_replace_callback($pattern, function($matches) { return '<td class="name">'.htmlspecialchars($matches[1]).'</td>';}, $response);
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
$dom = new DomDocument;
libxml_use_internal_errors(True);
if($dom->loadHTML($response)):

View File

@ -951,9 +951,9 @@ function GetEPGFromIscs($ChannelInfo) {
endif;
else :
$response = $data['html'];
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
$pattern = '/<td class="name">(.*)<\/td>/';
$response = preg_replace_callback($pattern, function($matches) { return '<td class="name">'.htmlspecialchars($matches[1]).'</td>';}, $response);
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
$dom = new DomDocument;
libxml_use_internal_errors(True);
if($dom->loadHTML($response)):