From a513c0bef534d05f03c1242831b6f3be19b97dae Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 17 Oct 2006 08:51:01 +0000 Subject: import rt 3.4.5 --- rt/html/Elements/QueryString | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rt/html/Elements/QueryString') diff --git a/rt/html/Elements/QueryString b/rt/html/Elements/QueryString index 7d41f15e0..1ddab85de 100644 --- a/rt/html/Elements/QueryString +++ b/rt/html/Elements/QueryString @@ -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('&',@params)); -- cgit v1.2.1