[Catalyst] Bug in URI ?!

Paul Makepeace paulm at paulm.com
Sun Sep 10 19:10:05 CEST 2006


On 9/10/06, Ash Berlin <ash at cpan.org> wrote:

> Am I missing something, or does
>
> $c->uri_for( $path, @args?, \%query_values? )
>
> not do what you are asking for?
>
> Or is the problem that any ampersands in there don't get escaped?

That's right, the ampersands are not escaped. Technically, that is the
correct thing to do, but in a template which 99.9% of the time is for
HTML, e.g. [% c.uri_for('/foo', { page => 2, view => 'xml' } %] it's
almost certainly not what you want.

I'm suggesting (to get the ball rolling) c.uri_for_html which
c.uri_for defaults to. Probably a config variable proxying the uri_for
to uri_for_plain or uri_for_html.

P

>
> Ash
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list