Skip Menu |

This queue is for tickets about the Mojolicious-Plugin-ValidateTiny CPAN distribution.

Report information
The Basics
Id: 84960
Status: new
Priority: 0/
Queue: Mojolicious-Plugin-ValidateTiny

People
Owner: KOORCHIK [...] cpan.org
Requestors: POWERMAN [...] cpan.org
Cc:
AdminCc:

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



Subject: use $c->req->params->param instead of $c->param
To get POST+GET param it's better to use $c->req->params->param. Problem is, $c->param is unreliable crap. It's filled in this way: 1) append POST params (multivalues supported); 2) append GET params (multivalues supported); 3) replace with UPLOAD params (multivalues supported); 4) replace with ROUTE params which doesn't match reserved stash values (multivalues not supported, last value used). The $c->req->param is currently same as $c->req->params->param, but I won't be surprised if one day UPLOAD params start replacing POST+GET values in $c->req->param, so it's better to avoid that too.