[VkBridge] Ignore illegal characters in input html for iconv (#1154)

This commit is contained in:
Eugene Molotov 2019-06-06 23:05:41 +05:00 committed by LogMANOriginal
parent 1814116d67
commit b0a780acda
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class VkBridge extends BridgeAbstract
$text_html = $this->getContents() $text_html = $this->getContents()
or returnServerError('No results for group or user name "' . $this->getInput('u') . '".'); or returnServerError('No results for group or user name "' . $this->getInput('u') . '".');
$text_html = iconv('windows-1251', 'utf-8', $text_html); $text_html = iconv('windows-1251', 'utf-8//ignore', $text_html);
// makes album link generating work correctly // makes album link generating work correctly
$text_html = str_replace('"class="page_album_link">', '" class="page_album_link">', $text_html); $text_html = str_replace('"class="page_album_link">', '" class="page_album_link">', $text_html);
$html = str_get_html($text_html); $html = str_get_html($text_html);