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 issue in auto --help that incorrectly displayed the binary name.
* Fixed an exploit in QDB that allowed users to use services fantasy commands * Fixed an exploit in QDB that allowed users to use services fantasy commands
with the bot's account. with the bot's account.
* Fixed a bug in LinkTitle that caused multi-line <title>'s to display wrong.
Incompatibilities: Incompatibilities:
+2
View File
@@ -3,6 +3,8 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev 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. * Added `wizard`, for creating local Auto config directories.
* Made Auto respond properly to PRIVMSGs received before connection. * Made Auto respond properly to PRIVMSGs received before connection.
* Added an AUR module. * Added an AUR module.
+3
View File
@@ -51,6 +51,9 @@ sub gettitle
# We were, decode the data. # We were, decode the data.
my $data = $res->decoded_content; my $data = $res->decoded_content;
# Strip newlines.
$data =~ s/(\n|\r)//gxsm;
# Check for <title> # Check for <title>
if ($data =~ m{<title>(.*)</title>}ixsm) { if ($data =~ m{<title>(.*)</title>}ixsm) {
# Found. Decode it. # Found. Decode it.