Skip to content

Commit 4238bc2

Browse files
committed
For [GH #150] - Avoid direct use of $env->{QUERY_STRING} since it still contains req-sigils.
1 parent 1c19aaa commit 4238bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lite/WebMVC0/Connection.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ sub convert_array_param_psgi {
350350
$prop->{cf_parameters} = do {
351351
if ($env->{CONTENT_TYPE} and defined $env->{CONTENT_LENGTH}) {
352352
my $body = $glob->parse_nested_query([$req->body_parameters->flatten]);
353-
my $qs = $glob->parse_nested_query($env->{QUERY_STRING});
353+
my $qs = $glob->parse_nested_query([$req->query_parameters->flatten]);
354354
foreach my $key (keys %$qs) {
355355
if (exists $body->{$key}) {
356356
die $glob->error("Attempt to overwrite post param '%s' by qs"
@@ -360,7 +360,7 @@ sub convert_array_param_psgi {
360360
}
361361
$body;
362362
} else {
363-
$glob->parse_nested_query($env->{QUERY_STRING});
363+
$glob->parse_nested_query([$req->query_parameters->flatten]);
364364
}
365365
};
366366
}

0 commit comments

Comments
 (0)