summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-06-06 15:18:47 +0300
committerAndrew Dolgov <[email protected]>2019-06-06 15:18:47 +0300
commit967cccb7c58b28dccfa4e9599c4e282e418f8c67 (patch)
tree06d8bdc0aecf0e25ee081e51607e0033a4949da1 /plugins
parentd36b64d8a7423c2dd0e9153e1961c99cca007ca5 (diff)
af_readability: relax non-unicode hack to apply to HTML4 meta element markup
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/af_readability/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php
index 8bb368389..7f3c6db4d 100755
--- a/plugins/af_readability/init.php
+++ b/plugins/af_readability/init.php
@@ -48,7 +48,7 @@ class Af_Readability extends Plugin {
function hook_prefs_tab($args) {
if ($args != "prefFeeds") return;
- print "<div dojoType='dijit.layout.AccordionPane'
+ print "<div dojoType='dijit.layout.AccordionPane'
title=\"<i class='material-icons'>extension</i> ".__('Readability settings (af_readability)')."\">";
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
@@ -178,7 +178,7 @@ class Af_Readability extends Plugin {
// this is the worst hack yet :(
if (strtolower($tmpdoc->encoding) != 'utf-8') {
- $tmp = preg_replace("/<meta.*?charset.*?\/>/i", "", $tmp);
+ $tmp = preg_replace("/<meta.*?charset.*?\/?>/i", "", $tmp);
$tmp = mb_convert_encoding($tmp, 'utf-8', $tmpdoc->encoding);
}