Debian Codegraph @

Changes

raw
1 Revision history for Perl extension CGI::Simple.
2
3 1.282 2025-08-28 MANWAR
4 - Sanitize all user-supplied values before inserting into HTTP headers.
5 Thanks Maxim Kosenko for raising the issue with recommended solution.
6 Thanks breno for the patch.
7 Thanks Stig Palmquist for assiginig it CVE-2025-40927.
8
9 1.281 2024-01-31 MANWAR
10 - RT-151161 Add CGI::Cookie partitioned support, PR #14, thanks @ldevantier-doseme.
11
12 1.280 2022-01-11 MANWAR
13 - Changed the version format from N.nn to N.nnn as requested.
14
15 1.27 2022-01-06 MANWAR
16 - Removed unneeded Build.PL #11, thanks @haarg.
17 - Moved prereqs to correct phase #12, thanks @haarg.
18
19 1.26 2022-01-02 MANWAR
20 - Dropped IO::Scalar prereq as suggested in PR #10, thanks @haarg.
21
22 1.25 2020-02-10 MANWAR
23 - Merged PR #9, thanks @ktat.
24
25 1.24 2020-02-07 MANWAR
26 - Addressed issue RT #125383 raised by SREZIC.
27
28 1.23 2020-02-06 MANWAR
29 - Fixed issue RT #131590, samesite parameter can be "None" as well.
30
31 1.22 2019-09-07 MANWAR
32 - Fixed issue RT #130454, samesite parameter missing from sub cookie().
33
34 1.21 2018-10-06 MANWAR
35 - Patched issue RT #67061 (handle warning uninitialsed value).
36
37 1.20 2018-10-05 MANWAR
38 - Merge pull request #4 from jjatria/302-found, changing the
39 name of 302 statuses from Moved to Found.
40
41 1.19 2018-10-04 MANWAR
42 - Merged pull request #3 from jjatria/max-age, which sets max-age
43 attribute correctly from constructor.
44
45 1.18 2018-10-03 MANWAR
46 - Merged pull request #2 from jjatria/samesite, adding
47 SameSite support to Cookie handling.
48
49 1.17 2018-10-02 MANWAR
50 - Merged pull request #7 from asb-capfan/master, should fix
51 CPAN Testers fail report on some windows box.
52
53 1.16 2018-07-25 MANWAR
54 - Made t/manifest.t AUTHOR only (RT #125383).
55 - Removed +x bits from test scripts.
56
57 1.15 2018-03-04 MANWAR
58 - Resolved issue RT #124646 (use vars → our), thanks @SREZIC.
59
60 1.14 2018-03-03 MANWAR
61 - Resolved issue RT #124645 (undeclared dependencies), thanks @SREZIC.
62
63 1.13 2018-03-01 MANWAR
64 - Merged PR #1, thanks @level420.
65 - Tidied Changes file.
66 - Tidied up Makefile.PL script.
67
68 1.12
69 - add 'use warnings' to code and tests.
70 - use File::Temp to create temporary directory for testing. RT #92833
71 - Test of RT #64160 (CVE-2010-4410 -- CRLF injection and response splitting via header()) added.
72 - depend on Test::Exception
73
74 1.115 2014.10.19
75 - Replace indirect calling of constructor both in code an documentation
76 with direct calling.
77 Write CGI::Simle->new instead of new CGI::Simple
78 - add tests to make sure the order of value is kept as they were passed in the QUERY_STRING
79 - new co-maintainer (SZABGAB)
80
81 1.114
82 - Drop support for Perls older than 5.6.1.
83
84 1.113 2010-12-27
85 - (thanks to Yamada Masahiro) randomise multipart boundary string (security).
86 - Numerous changes from Mark Stosberg:
87 Port max-age support from CGI.pm, to improve compatibility and
88
89 RFC-compliance
90 Correct header comment in cookie.t
91 It claims that is a simple copy/paste/modify from CGI.pm's test
92 by the same name, but this has not been true for some time--
93
94 CGI::Simple added
95 httponly tests that CGI.pm lacks, for example.
96 Sync cookie references with CGI.pm: add reference to the newer RFC 2695
97
98 "Interface to browse cookies" looks like it was typo for
99 "browser". HTTP is more precise.
100
101 Fix awkward "CGI::Simple.pm" language. It looks like it probably
102 originated from the CGI.pm form. "CGI::Simple" is used instead.
103 Best Practice: eliminate indirect object notation from new(),
104 parse() and fetch() calls
105
106 Security: Fix handling of embedded malicious newlines in header
107 values This is a direct port of the same security fix that
108
109 Security: use a random MIME boundary by default in
110 multipart_init(). This is a direct port of the same issue
111 which was addressed in CGI.pm, preventing some kinds of
112 potential header injection attacks.
113
114 Port from CGI.pm: Fix multi-line header parsing.
115 This fix is covered by the tests in t/header.t added in
116 the previous patch. If you run those tests without this
117 patch, you'll see how the headers would be malformed
118 without this fix.
119
120 Port CRLF injection prevention from CGI.pm
121
122 Optimize Vars(): Don't build %hash if we aren't going to use it.
123
124 Micro-optimization to Vars(): Don't call "tie" unless we need to.
125
126 - Numerous changes from K. Berov:
127 Added "+" to the mime character class.
128 Added tests for C<$mime = $q->upload_info( $filename, 'mime' );>
129 Fixed wrong match for mimetypes. Example: matched only
130 'application/vnd' instead of 'application/vnd.ms-excel'.
131 Added "\." to the mime character class
132
133 1.112 2009-05-31
134 - (thanks bingos) added missing IO::Scalar dependency.
135
136 1.111 2009-05-28
137 - Implemented Michael Nachbaur fixes for multipart form data handling.
138
139 1.110 2009-05-24
140 - Added missing test to manifest / distro.
141 - Added a test to ensure the manifest is consistent.
142 - Migrated to git.
143
144 1.109 2009-04-16
145 - Added support for HttpOnly to CGI::Simple::Cookie. Thanks to Scott Thomson for the patch.
146
147 1.108 2009-03-13
148 - Remove bogus references to Selfloader in documenation. No functional changes.
149
150 1.107 2009-03-07
151 - CGI::Simple::Cookie, fixed bug when cookie had both leading and
152 trailing white space (RT#34314, Ron Savage and Mark Stosberg)
153 - Accept a comma as well as semi-colon as a cookie separator. This
154 is consistent with CGI.pm as well as RFC 2965, which states: "A
155 server SHOULD also accept comma (,) as the separator between cookie-
156 values for future compatibility." (Mark Stosberg)
157 - Support cookies which have an equals sign in the value. Ported
158 from CGI.pm (Mark Stosberg)
159 - Support cookies in which one of multiple values is empty. Ported
160 from CGI.pm (Mark Stosberg)
161 - Fixed bug when calling unescapeHTML on HTML that wasn't
162 properly escaped in the first place. Thanks to M-Uchino and Mark Stosberg.
163 - Removed bogus dependency on version.pm.
164 - Add heuristic to upload to handle the case where no boundary is
165 specified in CONTENT_TYPE. See #14838.
166
167 1.106 2008-09-14
168 - Added missing Apache2 modules. Refs #39146 and #38931. Thanks to RSAVAGE.
169 - Applied BEROV's patch for UTF-8 form data handling. Refs #12481. Thanks to BEROV.
170
171 1.105 2008-05-16
172 - Fixed skip count in t/040.request.t. Fixes #35945. Thanks to snaury.
173
174 1.104 2008-05-13
175 - Switched from sysread to read. Fixes #35844: sysread used in
176 CGI::Simple blocks on re-directed STDIO reads. Thanks to Damjan Pelemis.
177
178 1.103 2007-07-31
179 - Version number chaos continues. One tends to forget that there
180 is a strange universe in which 1.1 > 1.1.2.
181
182 1.1.2 2007-07-31
183 - Fixed module names in POD for CGI::Simple::Cookie,
184 CGI::Simple::Util [#27597]. Thanks to BRICAS for reporting it.
185
186 1.1.1 2007-07-31
187 - Removed nasty global trap of __DIE__ in CGI::Standard. Thanks to Jeremy Morton for reporting it.
188
189 1.1 2007-07-13
190 - Added support for Set-Cookie as per CGI.pm patch 15065. Thanks to Patrick M. Jordan for the suggestion.
191
192 1.0 2007-05-24
193 - Another big version jump. I think we're about ready for 1.0.
194 - Fixed skip count under Win32 in t/40.request.t [27257]. Thanks to ISHIGAKI for the patch.
195
196 0.83 2007-05-22
197 - Big version jump to move version past badly formatted version in Cookie, Util.
198
199 0.082 2007-05-22
200 - Added REST support. Thanks to Mike Barry for the patch.
201
202 0.081 2007-05-20
203 - Fix for sysread under mod_perl. Thanks to Joshua N Pritikin for the patch.
204
205 0.080 2007-03-30
206 - Fixed problem parsing query args containing '='. Thanks to Ewan Edwards for the patch.
207
208 0.078 2007-01-09
209 - Maintenance release by Andy Armstrong <[email protected]>
210 - Rewrote tests to use Test::More
211 - Implemented mod_perl 2 support
212
213 0.077 Tue 23 Nov 2004
214 - Bugfix patches.
215 - José Micó supplied patch that relates to character set allowed in headers.
216 TAB and high ascii chars are definitivelly allowed in headers, and not
217 accepting them prevents the upload of files with filenames like "España.txt".
218 - José Micó also notes that some versions of IE send extra boundaries in
219 POSTed data before real ones. New patch should be fix this IE issue.
220 - Lars Thegler supplied some patches.
221 - head2/head3 pod changed to head1/head2 for the benefit of some older
222 tools that exepect this.
223 - Resolved issue with manpages not being installed on FREEBSD via Makefile hack
224 - Steve Purkis supplied a patch for a serious POST_MAX bug. A small modification
225 to control flow was used instead but this was a serious bug. If you are reading
226 this you are probably upgrading which is good.
227
228 0.076
229 - Went missing in action.
230
231 0.075 Tue June 1 2004
232 - Meant to upload 0.73 and 0.074 but just never got around to it
233 - Fixed upload hang bug in certain circumstances
234 - Added upload_fieldnames() method by request
235 - Added support for $fh = upload('field_name') but this has the issue
236 of what to do if 'field_name' is duplicated. You can only ever get one
237 fh from this method unlike the favoured approach using param() to get
238 the filename(s) which will let you get to all the files.
239 - José Micó deserves plaudits as does PodMaster.
240
241 0.072 Tue Sept 9 2003
242 - Patched issue with large POSTs where data may not be on STDIN for single
243 read call. Bug exists in CGI.pm as well. Thanks to Jason Luther
244 - Added tests for slow post behaviour
245
246 0.071 Sat Aug 2 2003
247 - Oops, changed $VERSION to 0.007 not 0.07 so have to change to 0.071 to upload again. ;-)
248 - no significant changes since 0.07 (aka 0.007) ;-)
249
250 0.07 Sat Aug 2 2003
251 - i admit to abject slackness, but anyway finally allocated a few hours
252 to apply a number of bug fixes which are (in no particular order)
253 - mod_perl compliant, patched by Mathew Albright
254 - still need to comment out use Selfloader and __DATA__ token
255 - still thinking about other solutions to this
256 - Blessed globs now possible in the constructor thanks to chromatic
257 - Unicode error 0xfe | ($c >> 30) -> 0xfc | ($c >>30 ) fixed thanks to
258 Thomas L. Shinnick
259 - s/$value ||= 0/$value = defined $value ? $value : ''/ in raw_fetch() method
260 in Cookie.pm to allow value 0.
261 - Added missing $VERSION to Util.pm
262 - Added P3P support as suggested by Marc Bauer (parallels CGI.pm)
263 - updated header() and redirect() methods in Simple.pm
264
265 0.06 Fri Nov 8 2002
266 - finally found someone with a solaris box to work out reason for
267 unexpected test failures. Thanks to John D. Robinson and Jeroen Latour
268 Details available at: http://www.perlmonks.org/index.pl?node_id=211401
269 - Removed another new bug relating to test scripts rather than core code
270 thanks to the combined effors of Perlmonks tommyw, grinder, Jaap, vek,
271 erasei, jlongino and strider_corinth
272
273 0.05 Wed Nov 6 2002
274 - nasty upload bug reported (with solution) by Brandon Black fixed. Perl would
275 hang if upload terminated by browser before completion
276 - also odity with IO::file fixed (Brandon Black once again)
277
278 0.04 Sat Apr 12 2002
279 - test bug on Solaris reported by [email protected] and fixed
280
281 0.03 Fri Apr 12 2002
282 - modifed test so skipping fork() test is noted as such
283 - allow '0' as a valid param name
284 - renamed concur.t to concur.test so that it does not rub by default
285 - added speed tests comparing CGI.pm to CGI::Simple in the file
286 cgi-simple_vs_cgi-pm.html in the root dir
287
288 0.02 Fri Dec 21 2001
289 - added cgi_error() if upload called but CONTENT_TYPE not multipart/form-data
290 - changed inernal storage names of globals by droping $
291 - added mod_perl notes re Selfloader and __DATA__ token
292 - as per suggestions from Curtis Poe
293
294 0.01 Thu Nov 1 12:21:48 2001
295 - original version; created by h2xs 1.21 with options -X CGI::Simple