[Catalyst] Bug in uri_for()
Paul Makepeace
paulm at paulm.com
Thu Jul 13 14:44:57 CEST 2006
Folks may already know about this, sorry I haven't checked RT etc:
I've just upgraded from 5.66 to 5.70 and noticed a bug with uri_for -
it seems that if one of the final-arg hash ref parameters has a value
that is not something it's expecting it dies, for example,
$c->uri_for($base, @args, { url => $c->req->base });
# "Non-array reference (URI::http) passed to uri_for()"
The $c->req->base is a URI::http. My solution was to force it to
stringify by appending a blank string (e.g. .'')
Paul
More information about the Catalyst
mailing list