Skip Menu |

This queue is for tickets about the URI-Title CPAN distribution.

Report information
The Basics
Id: 35188
Status: resolved
Priority: 0/
Queue: URI-Title

People
Owner: Nobody in particular
Requestors: ilmari+cpan [...] ilmari.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.62
Fixed in: (no value)



Subject: Gives warnins if imgsize() fails
If imgsize() fails, URI::Title::Image warns of "Use of uninitialized value in concatenation (.) or string". The below patch makes it just return the type if imgsize() fails: --- lib/URI/Title/Image.pm~ 2006-05-18 16:52:58.000000000 +0100 +++ lib/URI/Title/Image.pm 2008-04-18 16:39:45.000000000 +0100 @@ -22,6 +22,7 @@ my ($x, $y) = imgsize(\$data); $type =~ s!^[^/]*/!!; + return $type unless $x && $y; return "$type ($x x $y)"; }
patched and shipped in 1.7. Thanks.