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

Owner: Nobody in particular
Requestors: ilmari+cpan [...]

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

Subject: Gives warnins if imgsize() fails
Download (untitled) / with headers
text/plain 446b
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/ 2006-05-18 16:52:58.000000000 +0100 +++ lib/URI/Title/ 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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to