Skip Menu |

This queue is for tickets about the Apache2-AuthCAS CPAN distribution.

Report information
The Basics
Id: 30356
Status: resolved
Priority: 0/
Queue: Apache2-AuthCAS

People
Owner: jhitt [...] illumasys.com
Requestors: david [...] stickybit.se
Cc:
AdminCc:

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



Subject: Error when GET parameter without value is sent to a page
Date: Tue, 30 Oct 2007 09:29:51 +0100
To: bug-Apache2-AuthCAS [...] rt.cpan.org
From: David Westlund <david [...] stickybit.se>
AuthCAS version: 0.1 Perl version: 5.8.7 OS: Ubuntu 6.06, kernel Linux 2.6.15-28-server. If you send a GET parameter without a value (eg. visiting /index.php?parameter) to a page that is parsed by AuthCAS, you get the following error: Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.8.7/Apache2/AuthCAS.pm line 872.\n The error is caused by the following split on row 870: my($key, $value) = split(/=/, $param) If there is no = in $param, row 872 complains: $self->logMsg("PARAM: '$key' => '$value'", $LOG_DEBUG); Solution: Check whether $value is set, and if it is not, set it to the empty string. The following patch does that: --- 871a872,875 Show quoted text
> if (!$value) > { > $value = ''; > }
--- Regards, David Westlund
Resolved in version 0.2