Fixed a bug in LinkTitle that caused multi-line <title>'s to display wrong.

This commit is contained in:
Elijah Perrault committed 2011-03-17 13:28:12 -06:00
1 parent f75618e5ec
commit 6b09c4d818
3 files changed
+6

No files matched your search

+3
View File
@@ -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) {