Fixed a bug in LinkTitle that caused multi-line <title>'s to display wrong.
This commit is contained in:
1 parent
f75618e5ec
commit
6b09c4d818
3 files changed
+6
No files matched your search
@@ -50,6 +50,9 @@ sub gettitle
|
||||
if ($res->is_success) {
|
||||
# We were, decode the data.
|
||||
my $data = $res->decoded_content;
|
||||
|
||||
# Strip newlines.
|
||||
$data =~ s/(\n|\r)//gxsm;
|
||||
|
||||
# Check for <title>
|
||||
if ($data =~ m{<title>(.*)</title>}ixsm) {
|
||||
|
||||
Reference in new issue
Block a user