From b0a780acda5b4bc86327c7461a9f21628cb32b0f Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Thu, 6 Jun 2019 23:05:41 +0500 Subject: [PATCH] [VkBridge] Ignore illegal characters in input html for iconv (#1154) --- bridges/VkBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 8653e7c9..f9aaa66a 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -52,7 +52,7 @@ class VkBridge extends BridgeAbstract $text_html = $this->getContents() 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 $text_html = str_replace('"class="page_album_link">', '" class="page_album_link">', $text_html); $html = str_get_html($text_html);