diff options
author | David Phillips <david@sighup.nz> | 2019-06-22 14:13:55 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-06-22 14:13:55 +1200 |
commit | c04858116ef69bbe80d0578cb150d6fb9a4a9ac3 (patch) | |
tree | 4f533e4a96ed81d4f321b7cfb14f2efcbbefd6c7 | |
parent | a02c227f944074434dea2f87cfb50f4df1eccad0 (diff) | |
download | idalius-c04858116ef69bbe80d0578cb150d6fb9a4a9ac3.tar.xz |
URL_Title: Workaround for UTF-8 decoder crash
-rw-r--r-- | Plugin/URL_Title.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm index 5299e1f..85dc1eb 100644 --- a/Plugin/URL_Title.pm +++ b/Plugin/URL_Title.pm @@ -86,7 +86,7 @@ sub get_title $p->parse($html); return (undef, undef, "Error parsing HTML: $!") if $!; - if ($charset) { + if ($charset and $charset ne "utf-8") { my $dc = Encode::find_encoding($charset); return (undef, undef, "Error: Unknown encoding $charset") unless $dc; $title = $dc->decode($title); |