Skip Menu |

This queue is for tickets about the CGI-Deurl CPAN distribution.

Report information
The Basics
Id: 20771
Status: resolved
Worked: 10 min
Priority: 0/
Queue: CGI-Deurl

People
Owner: Nobody in particular
Requestors: ac0v [...] sys-network.de
Cc:
AdminCc:

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



Subject: validation for hash entrys not complete
I think I found a bug in sub deurl of CGI::Deurl . If ref $hash->{$name} is no array reference the programm will die. This may happens if there is a filehandle in $hash->{$name}. patch file is appended. Best Regards, Andreas 'ac0v' Specht
Subject: deurl.patch
368c368 < if (ref $hash->{$name}) { --- > if (ref $hash->{$name} eq 'ARRAY') {
From: JENDA [...] cpan.org
On Mon Jul 31 08:00:51 2006, ACID wrote: Show quoted text
> I think I found a bug in sub deurl of CGI::Deurl . > If ref $hash->{$name} is no array reference the programm will die. > This may happens if there is a filehandle in $hash->{$name}. > > patch file is appended. > > Best Regards, > Andreas 'ac0v' Specht
Thanks. I did not really expect the %hash passed to the subroutine to contain anything except maybe stuff comming from some previous enurl() call so I did not check for anything but strings and array references. Fixed in the new version. Not sure when will I release it though, there are some more changes I need to test first.