File: 0007-Comment-that-cgi_param-is-context-sensitive-just-lik.patch

package info (click to toggle)
libcgi-formbuilder-perl 3.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,320 kB
  • sloc: perl: 7,222; makefile: 2; sh: 1
file content (17 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
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(@_);
 }