Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Catalyst-ActionRole-QueryParameter CPAN distribution.

Report information
The Basics
Id: 96250
Status: new
Priority: 0/
Queue: Catalyst-ActionRole-QueryParameter

People
Owner: Nobody in particular
Requestors: valmid [...] gmail.com
Cc:
AdminCc:

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



Subject: String comparison not working
String comparison of query parameter is not working for two reasons. 1. At QueryParameter line 38: $cond = $op=~/eq|gt|ge|lt|le/ ? '"$cond"' : $cond; Variable $cond is not interpolated in '"$cond"'. The line should be changed to: $cond = $op=~/eq|gt|ge|lt|le/ ? "'$cond'" : $cond; In case $op is a string comparison operator, $req_param should also be quoted, which can be done by adding the following line after line 38: $req_param = $op=~/eq|gt|ge|lt|le/ ? "'$req_param'" : $req_param;