[Catalyst] Trailing undef in uri_for()

Matt S Trout dbix-class at trout.me.uk
Tue Jun 5 09:18:50 GMT 2007

On Mon, Jun 04, 2007 at 10:59:41PM -0700, Bill Moseley wrote:
> In a template I was using:
>     c.uri_for( 'path', arg1, arg2 );
> where arg1 and arg2 are sometimes not defined.   In that case uri_for
> generates a url with two trailing slashes.
> Is there a reason to keep that behavior or should uri_for pop any
> undefined items off @args?

I think for '' the behaviour's correct.

Not sure about undef, it doesn't strike me as a valid value. Thoughts, anyone?

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

More information about the Catalyst mailing list