From 1c4dc2606918af9aa2ded0c2dab67ece9bf5cb09 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Wed, 5 Jun 2019 09:53:23 +0500 Subject: [PATCH] [VkBridge] Ignore illegal characters in input html for iconv --- bridges/VkBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 5274180f14c..74251404316 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -52,7 +52,7 @@ public function collectData() $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);