Skip Menu |

This queue is for tickets about the WWW-GetPageTitle CPAN distribution.

Report information
The Basics
Id: 67084
Status: resolved
Priority: 0/
Queue: WWW-GetPageTitle

People
Owner: Nobody in particular
Requestors: geistteufel [...] yahoo.fr
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.0102
Fixed in: (no value)



Subject: Module crash when fetch non html page
If I use the module for a non html page, it crash : Ex with : http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.2.tar.bz2 Line 57 : unless ( defined $title ) { ( $title ) = $response->decoded_content =~ m|<title[^>]*>(.+?)</title>|si; decode_entities( $title ); } When title is undef, decode_entities fail. a quick fix should be around : unless ( defined $title ) { ( $title ) = $response->decoded_content =~ m|<title[^>]*>(.+?)</title>|si; decode_entities( $title ) if defined $title; }
Fix applied to version 0.0103, which was just shipped to CPAN. Thanks!