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;
}