Bill Moseley wrote:
> Minor problem, but I'm wondering if there's a better URL plugin.

Changed line 19 of Template::Plugin::URL from:

   grep { defined $combo->{ $_ } }

to:

   grep { defined $combo->{ $_ } && length $combo->{ $_ } }

In Bill's example:
>             SET href = u( sort_order = column, reverse = undef );

There is no 'undef' in TT, so you're having the effect of setting the 
reverse parameter to a zero-length string.  However, the plugin was 
only checking for definedness, so it would let this one slip through.

Patched in CVS.

A


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to