1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Subject: Comment that cgi_param is context-sensitive just like param
Origin: vendor
From: Simon McVittie <smcv@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-12-07
--- a/lib/CGI/FormBuilder.pm
+++ b/lib/CGI/FormBuilder.pm
@@ -1180,6 +1180,8 @@
sub cgi_param {
my $self = shift;
+ # This returns a scalar or a list, depending on context, like CGI.pm.
+ # For best results, don't call it with a parameter in list context.
$self->{params}->param(@_);
}
|