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

+1
View File
@@ -23,6 +23,7 @@ Bug fixes:
* Fixed an issue in auto --help that incorrectly displayed the binary name.
* Fixed an exploit in QDB that allowed users to use services fantasy commands
with the bot's account.
* Fixed a bug in LinkTitle that caused multi-line <title>'s to display wrong.
Incompatibilities:
+2
View File
@@ -3,6 +3,8 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev
===============================================================================
* Fixed a bug in LinkTitle that caused multi-line <title>'s to display
wrong.
* Added `wizard`, for creating local Auto config directories.
* Made Auto respond properly to PRIVMSGs received before connection.
* Added an AUR module.
+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) {