[Rt-commit] r4090 - rt/branches/3.4-RELEASE/html/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Mon Nov 14 17:02:37 EST 2005
Author: ruz
Date: Mon Nov 14 17:02:36 2005
New Revision: 4090
Modified:
rt/branches/3.4-RELEASE/html/Elements/QueryString
Log:
* /Elements/QueryString now supports ARRAY refs, this allow us to handle
multiple arguments with the same name, this behaviour is consistent with
how HTML::Mason handle arguments
Modified: rt/branches/3.4-RELEASE/html/Elements/QueryString
==============================================================================
--- rt/branches/3.4-RELEASE/html/Elements/QueryString (original)
+++ rt/branches/3.4-RELEASE/html/Elements/QueryString Mon Nov 14 17:02:36 2005
@@ -45,8 +45,12 @@
%# END BPS TAGGED BLOCK }}}
<%init>
my @params;
-while ( (my $key, my $value) = each %ARGS ){
+while ( my ($key, $value) = each %ARGS ){
+ if( UNIVERSAL::isa( $value, 'ARRAY' ) ) {
+ push @params, map $key."=".$m->interp->apply_escapes($_,'u'), @$value;
+ } else {
push @params, $key."=".$m->interp->apply_escapes($value,'u');
+ }
}
return(join('&', at params));
</%init>
More information about the Rt-commit
mailing list