Upgrade to CGI.pm-3.19.
[p5sagit/p5-mst-13.2.git] / lib / CGI / Changes
CommitLineData
cb3b230c 1 Version 3.19
2 1. Added patch from Stephen Frost that allows one to suppress use of the temp file that is
3 created during uploads.
4 2. Fixed problem noted by Martin Foster in which regular expression meta-character terms
5 in the path information were not quoted, causing URL parsing
6 to fail on URLs that contained metacharacters (such as +).
7 3. More fixes to the url() method.
8 4. Removed "hack to fix broken PATH_INFO in MSII".
9
10 Version 3.18
11 1. Doc typo fixes.
12 2. Patch from Steve Peters to default the document type to match the charset.
13 3. Fixed param() so that param(-name=>'foo',-values=>[]) sets the parameter to empty list.
14
55b5d700 15 Version 3.16 Wed Feb 8 13:29:11 EST 2006
16 1. header() -charset option now works even when the MIME type is not "text".
17 2. Fixed documentation for cookie() function and fastCGI.
18 3. Upload filehandles now only closed automatically on Windows systems.
19 4. Apache::Cookie compatibility fix from David Wheeler
20 5. CGI::Carp->fatalsToBrowser() does not work correctly with
21 mod_perl 2. No workaround is known.
22 6. Fixed text status code associated with 302 redirects. Should be "Found"
23 but was "Moved".
24 7. Fixed charset in start_html() and header() to be in synch.
25
edc47407 26 Version 3.15 Wed Dec 7 15:13:22 EST 2005
27 1. Remove extraneous "?" from self_url() when URI contains a ? but no query string.
28
1f426928 29 Version 3.14 Tue Dec 6 17:12:03 EST 2005
30 1. Fixed broken scrolling_list() select attribute.
31
0a9bdad4 32 Version 3.13
33 1. Removed extraneous empty "?" from end of self_url().
34
35 Version 3.12
36 1. Fixed virtual_port so that it works properly with https protocol.
37 2. Fixed documentation for upload_hook().
38 3. Added POSTDATA documentation.
39 4. Made upload_hook() work in function-oriented mode.
40 5. Fixed POST_MAX behavior so that it doesn't cause client to hang.
41 6. Disabled automatic tab indexes and added new -tabindex pragma to
42 turn automatic indexes back on.
43 7. The url() and self_url() methods now work better in the context of Apache
44 mod_rewrite. Be advised that path_info() may give you confusing results
45 when mod_rewrite is active because Apache calculates the path info *after*
46 rewriting. This is mostly worked around in url() and self_url(), but you
47 may notice some anomalies.
48 8. Removed empty (and non-validating) <div> from code emitted by end_form().
49 9. Fixed CGI::Carp to work correctly with Mod_perl 1.29 in an Apache 2 environment.
50 10. Setting $CGI::TMPDIRECTORY should now be effective.
51
7dc108d1 52 Version 3.11
53 1. Killed warning in CGI::Cookie about MOD_PERL_API_VERSION
54 2. Fixed append() so that it works in function mode.
55 3. Workaround for a bug that appears in Apache2 versions through 2.0.54
56 in which SCRIPT_NAME and PATH_INFO are incorrect if the additional path_info
57 contains a double slash. This workaround will handle the common case of
58 http://mysite.com/cgi-bin/log.cgi/http://www.some.other.site/args, but will
59 not handle the uncommon case of a ScriptAlias directive that adds additional
60 path information to the end of the translated URI.
61
70194bd6 62 Version 3.10
63 1. Added Apache2::RequestIO, which is necessary for mp2 interoperability.
64
65 Version 3.09
66 1. Fixed tabindex="0" when using CGI to create forms without a prior start_html
67 2. Removed warning about non-numeric MOD_PERL_API_VERSION.
68
741ff09d 69 Version 3.08
70 1. update support for mod_perl 2.0. versions prior to
71 mod_perl 1.999_22 (2.0.0-RC5) are no longer supported.
72
976c4ade 73 Version 3.07
74 1. Fixed typo in mod_perl detection.
75
76 Version 3.06
77
78 1. Fixed bare call to script() in start_html
79 2. Moved Fh::DESTROY out of autoloaded functions so as to avoid
80 clobbering $@ when CGI functions are executed in an eval{}
81 context.
82 3. mod_perl 2.0 version detection patch in CGI::Cookie provided by
83 Allen Day.
84 4. autoEscape() flag is now respected when generating extra
85 attributes.
86 5. Tests for *tag start/end generation from Shlomi Fish.
87 6. Support for can() method provided by Ron Savage.
88 7. Fix for lang='' when outputting XHTML.
89 8. Added support for chunked transfer encoding, as suggested by
90 Hakan Ardo
91 9. Fixed clobbering of row and column headers in tableized radio
92 and checkbox groups, as reported by Nicolas Thierry-Mieg.
93 10. <Label> tags are now associated with form elements, as suggested
94 by accessibility guidelines.
95 11. The <?xml> directive produced by start_html is now turned off by
96 default and the charset is specified in a <meta> directive. Apparently
97 IE6 (and maybe some versions of Opera) were getting confused by this.
98 12. Support for tab indexes.
99 13. Retired the HTML docs. The POD docs are now primary documentation.
100 14. CGI::Carp now correctly detects and handles Apache::Dispatch.
101 15. CGI::Util::utf8_chr now correctly sets the UTF8 flag on 5.006 or
102 higher perls (fix courtesy Slaven Rezic).
103
104
105 Version 3.05
106
107 1. Fixed uninitialized variable warning on start_form() when running
108 from command line.
109 2. Fixed CGI::_set_attributes so that attributes with a - are handled
110 correctly.
111 3. Fixed CGI::Carp::die() so as to avoid problems from _longmess()
112 clobbering @_.
113 4. If HTTP_X_FORWARDED_HOST is defined (i.e. running under a proxy),
114 the various functions that return HOST will use that instead.
115 5. Fix for undefined utf8() call in CGI::Util.
116 6. Changed the call to warningsToBrowser() in
117 CGI::Carp::fatalsToBrowser to call only after HTTP header is sent
118 (thanks to Didier Lebrun for noticing).
119 7. Patches from Dan Harkless to make CGI.pm validatable against HTML
120 3.2.
121 8. Fixed an extraneous "foo=bar" appearing when extra style
122 parameters passed to start_html;
123 9. Fixed cross-site scripting bug in startform() pointed out by Dan
124 Harkless.
125 10. Fixed documentation to discuss list context behavior of
126 form-element generators explicitly.
127 11. Fixed incorrect results from end_form() when called in OO manner.
128 12. Fixed query string stripping in order to handle URLs containing
129 escaped newlines.
130 13. During server push, set NPH to 0 rather than 1. This is supposed
131 to fix problems with Apache.
132 14. Fixed incorrect processing of multipart form fields that contain
133 embedded quotes. There's still the issue of how to handle ones
134 that contain embedded semicolons, but no one has complained (yet).
135 15. Fixed documentation bug in -style argument to start_html()
136 16. Added -status argument to redirect().
137
138 Version 3.04
139
140 1. Fixed the problem with mod_perl crashing when "defaults" button
141 pressed.
142
143 Version 3.03
144
145 1. Fix upload hook functionality
146 2. Workaround for CGI->unescape_html()
147 3. Bumped version numbers in CGI::Fast and CGI::Util for 5.8.3-tobe
148
149 Version 3.02
150
151 1. Bring in Apache::Response just in case.
152 2. File upload on EBCDIC systems now works.
153
154 Version 3.01
155
156 1. No fix yet for upload failures when running on EBCDIC server.
157 2. Fixed uninitialized glob warnings that appeared when file
158 uploading under perl 5.8.2.
159 3. Added patch from Schlomi Fish to allow debugging of PATH_INFO from
160 command line.
161 4. Added patch from Steve Hay to correctly unlink tmp files under
162 mod_perl/windows
163 5. Added upload_hook functionality from Jamie LeTaul
164 6. Workarounds for mod_perl 2 IO issues. Check that file upload and
165 state saving still working.
166 7. Added code for underreads.
167 8. Fixed misleading description of redirect() and relative URLs in
168 the POD docs.
169 9. Workaround for weird interaction of CGI::Carp with Safe module
170 reported by William McKee.
171 10. Added patches from Ilmari Karonen to improve behavior of
172 CGI::Carp.
173 11. Fixed documentation error in -style argument.
174 12. Added virtual_port() method for finding out what port server is
175 listening on in a virtual-host aware fashion.
176
177 Version 3.00
178
179 1. Patch from Randal Schwartz to fix bug introduced by cross-site
180 scripting vulnerability "fix."
181 2. Patch from JFreeman to replace UTF-8 escape constant of 0xfe with
182 0xfc. Hope this is right!
183
184 Version 2.99
185
186 1. Patch from Steve Hay to fix extra Content-type: appearing on
187 browser screen when FatalsToBrowser invoked.
188 2. Patch from Ewann Corvellec to fix cross-site scripting
189 vulnerability.
190 3. Fixed tmpdir routine for file uploading to solve problem that
191 occurs under mod_perl when tmpdir is writable at startup time, but
192 not at session time.
193
194 Version 2.98
195
196 1. Fixed crash in Dump() function.
197
198 Version 2.97
199
200 1. Sigh. Uploaded wrong 2.96 to CPAN.
201
202 Version 2.96
203
204 1. More bugfixes to the -style argument.
205
206 Version 2.95
207
208 1. Fixed bugs in start_html(-style=>...) support introduced in 2.94.
209
210 Version 2.94
211
212 1. Removed warning from reset() method.
213 2. Moved
214
215 and tags into the :html3 group. Hope this removes undefined CGI::Area
216 errors.
217
218 Changed CGI::Carp to play with mod_perl2 and to (hopefully) restore
219 reporting of compile-time errors.
220
221 Fixed potential deadlock between web server and CGI.pm when aborting
222 a read due to POST_MAX (reported by Antti Lankila).
223
224 Fixed issue with tag-generating function not incorporating content
225 when first variable undef.
226
227 Fixed cross-site scripting bug reported by obscure.
228
229 Fixed Dump() function to return correctly formed XHTML - bug
230 reported by Ralph Siemsen.
231
232 Version 2.93
233
234 1. Fixed embarassing bug in mp1 support.
235
236 Version 2.92
237
238 1. Fix to be P3P compliant submitted from MPREWITT.
239 2. Added CGI->r() API for mod_perl1/mod_perl2.
240 3. Fixed bug in redirect() that was corrupting cookies.
241 4. Minor fix to behavior of reset() button to make it consistent with
242 submit() button (first time this has been changed in 9 years).
243 5. Patch from Dan Kogai to handle UTF-8 correctly in 5.8 and higher.
244 6. Patch from Steve Hay to make CGI::Carp's error messages appear on
245 MSIE browsers.
246 7. Added Yair Lenga's patch for non-urlencoded postings.
247 8. Added Stas Bekman's patches for mod_perl 2 compatibility.
248 9. Fixed uninitialized escape behavior submitted by William Campbell.
249 10. Fixed tied behavior so that you can pass arguments to tie()
250 11. Fixed incorrect generation of URLs when the path_info contains +
251 and other odd characters.
252 12. Fixed redirect(-cookies=>$cookie) problem.
253 13. Fixed tag generation bug that affects -javascript passed to
254 start_html().
255
256 Version 2.91
257
258 1. Attribute generation now correctly respects the value of
259 autoEscape().
260 2. Fixed endofrm() syntax error introduced by Ben Edgington's patch.
261
262 Version 2.90
263
264 1. Fixed bug in redirect header handling.
265 2. Added P3P option to header().
266 3. Patches from Alexey Mahotkin to make CGI::Carp work correctly with
267 object-oriented exceptions.
268 4. Removed inaccurate description of how to set multiple cookies from
269 CGI::Cookie pod file.
270 5. Patch from Kevin Mahony to prevent running out of filehandles when
271 uploading lots of files.
272 6. Documentation enhancement from Mark Fisher to note that the
273 import_names() method transforms the parameter names into valid
274 Perl names.
275 7. Patch from Dan Harkless to suppress lang attribute in <html> tag
276 if specified as a null string.
277 8. Patch from Ben Edgington to fix broken XHTML-transitional 1.0
278 validation on endform().
279 9. Custom html header fix from Steffen Beyer (first letter correctly
280 upcased now)
281 10. Added a -verbatim option to stylesheet generation from Michael
282 Dickson
283 11. Faster delete() method from Neelam Gupta
284 12. Fixed broken Cygwin support.
285 13. Added empty charset support from Bradley Baetz
286 14. Patches from Doug Perham and Kevin Mahoney to fix file upload
287 failures when uploaded file is a multiple of 4096.
288
289 Version 2.89
290
291 1. Fixed behavior of ACTION tag when POSTING to a URL that has a
292 query string.
293 2. Added Patch from Michael Rommel to handle multipart/mixed uploads
294 from Opera
295
296 Version 2.88
297
298 1. Fixed problem with uploads being refused under Perl 5.8 when under
299 Taint mode.
300 2. Fixed uninitialized variable warnings under Perl 5.8.
301 3. Fixed CGI::Pretty regression test failures.
302
303 Version 2.87
304
305 1. Security hole patched: when processing multipart/form-data
306 postings, most arguments were being untainted silently. Returned
307 arguments are now tainted correctly. This may cause some scripts
308 to fail that used to work (thanks to Nick Cleaton for pointing
309 this out and persisting until it was fixed).
310 2. Update for mod_perl 2.0.
311 3. Pragmas such as -no_xhtml are now respected in mod_perl
312 environment.
313
314 Version 2.86
315
316 1. Fixes for broken CGI::Cookie expiration dates introduced in 2.84.
317
318 Version 2.85
319
320 1. Fix for broken autoEscape function introduced in 2.84.
321
322 Version 2.84
323
324 1. Fix for failed file uploads on Cygwin platforms.
325 2. HTML escaping code now replaced 0x8b and 0x9b with unicode
326 references < and *#8250;
327
328 Version 2.83
329
330 1. Fixed autoEscape() documentation inconsistencies.
331 2. Patch from Ville Skyttä to fix a number of XHTML inconsistencies.
332 3. Added Max-Age to list of CGI::Cookie headers.
333
334 Version 2.82
335
336 1. Patch from Rudolf Troller to add attribute setting and option
337 groups to form fields.
338 2. Patch from Simon Perreault for silent crashes when using CGI::Carp
339 under mod_perl.
340 3. Patch from Scott Gifford allows you to set the program name for
341 CGI::Carp.
342
343 Version 2.81
344
345 1. Removed extraneous slash from end of stylesheet tags generated by
346 start_html in non-XHTML mode.
347 2. Changed behavior of CGI::Carp with respect to eval{} contexts so
348 that output behaves properly in mod_perl environments.
349 3. Fixed default DTD so that it validates with W3C validator.
350
351 Version 2.80
352
353 1. Fixed broken messages in CGI::Carp.
354 2. Changed checked="1" to checked="checked" for real XHTML
355 compatibility.
356 3. Resurrected REQUEST_URI code so that url() works correctly with
357 multiviews.
358
359 Version 2.79
360
361 1. Changes to CGI::Carp to avoid "subroutine redefined" error
362 messages.
363 2. Default DTD is now XHTML 1.0 Transitional
364 3. Patches to support all HTML4 tags.
365
366 Version 2.78
367
368 1. Added ability to change encoding in <?xml> assertion.
369 2. Fixed the old escapeHTML('CGI') ne "CGI" bug
370 3. In accordance with XHTML requirements, there are no longer any
371 minimized attributes, such as "checked".
372 4. Patched bug which caused file uploads of exactly 4096 bytes to be
373 truncated to 4094 (thanks to Kevin Mahony)
374 5. New tests and fixes to CGI::Pretty (thanks to Michael Schwern).
375
376 Version 2.77
377
378 1. No new features, but released in order to fix an apparent CPAN
379 bug.
380
381 Version 2.76
382
383 1. New esc.t regression test for EBCDIC translations courtesy Peter
384 Prymmer.
385 2. Patches from James Jurach to make compatible with FCGI-ProcManager
386 3. Additional fields passed to header() (like -Content_disposition)
387 now honor initial capitalization.
388 4. Patch from Andrew McNaughton to handle utf-8 escapes (%uXXXX
389 codes) in URLs.
390
391 Version 2.752
392
393 1. Syntax error in the autoloaded Fh::new() subroutine.
394 2. Better error reporting in autoloaded functions.
395
396 Version 2.751
397
398 1. Tiny tweak to filename regular expression function on line 3355.
399
400 Version 2.75
401
402 1. Fixed bug in server push boundary strings (CGI.pm and CGI::Push).
403 2. Fixed bug that occurs when uploading files with funny characters
404 in the name
405 3. Fixed non-XHTML-compliant attributes produced by textfield()
406 4. Added EPOC support, courtesy Olaf Flebbe
407 5. Fixed minor XHTML bugs.
408 6. Made escape() and unescape() symmetric with respect to EBCDIC,
409 courtesy Roca, Ignasi <ignasi.roca@fujitsu.siemens.es>
410 7. Removed uninitialized variable warning from CGI::Cookie, provided
411 by Atipat Rojnuckarin <rojnuca@yahoo.com>
412 8. Fixed bug in CGI::Pretty that causes it to print partial end tags
413 when the $INDENT global is changed.
414 9. Single quotes are changed to character entity ' for compatibility
415 with URLs.
416
417 Version 2.74
418
419 September 13, 2000
420 1. Quashed one-character bug that caused CGI.pm to fail on file
421 uploads.
422
423 Version 2.73
424
425 September 12, 2000
426 1. Added -base to the list of arguments accepted by url().
427 2. Fixes to XHTML support.
428 3. POST parameters no longer show up in the Location box.
429
430 Version 2.72
431
432 August 19, 2000
433 1. Fixed the defaults button so that it works again
434 2. Charset is now correctly saved and restored when saving to files
435 3. url() now works correctly when given scripts with %20 and other
436 escapes in the additional path info. This undoes a patch
437 introduced in version 2.47 that I no longer understand the
438 rationale for.
439
440 Version 2.71
441
442 August 13, 2000
443 1. Newlines in the value attributes of hidden fields and other form
444 elements are now escaped when using ISO-Latin.
445 2. Inline script and style sections are now protected as CDATA
446 sections when XHTML mode is on (the default).
447
448 Version 2.70
449
450 August 4, 2000
451 1. Fixed bug in scrolling_list() which omitted a space in front of
452 the "multiple" attribute.
453 2. Squashed the "useless use of string in void context" message from
454 redirects.
455
456 Version 2.69
457
458 1. startform() now creates default ACTION for POSTs as well as GETs.
459 This may break some browsers, but it no longer violates the HTML
460 spec.
461 2. CGI.pm now emits XHTML by default. Disable with -no_xhtml.
462 3. We no longer interpret &#ddd sequences in non-latin character
463 sets.
464
465 Version 2.68
466
467 1. No longer attempts to escape characters when dealing with non
468 ISO-8861 character sets.
469 2. checkbox() function now defaults to using -value as its label,
470 rather than -name. The current behavior is what has been
471 documented from the beginning.
472 3. -style accepts array reference to incorporate multiple stylesheets
473 into document.
474
475 1. Fixed two bugs that caused the -compile pragma to fail with a
476 syntax error.
477
478 Version 2.67
479
480 1. Added XHTML support (incomplete; tags need to be lowercased).
481 2. Fixed CGI/Carp when running under mod_perl. Probably broke in
482 other contexts.
483 3. Fixed problems when passing multiple cookies.
484 4. Suppress warnings from _tableize() that were appearing when using
485 -w switch with radio_group() and checkbox_group().
486 5. Support for the header() -attachment argument, which can give
487 pages a default file name when saving to disk.
488
489 Version 2.66
490
491 1. 2.65 changes in make_attributes() broke HTTP header functions
492 (including redirect), so made it context sensitive.
493
494 Version 2.65
495
496 1. Fixed regression tests to skip tests that require implicit fork on
497 machines without fork().
498 2. Changed make_attributes() to automatically escape any HTML
499 reserved characters.
500 3. Minor documentation fix in javascript example.
501
502 Version 2.64
503
504 1. Changes introduced in 2.63 broke param() when retrieving parameter
505 lists containing only a single argument. This is now fixed.
506 2. self_url() now defaults to returning parameters delimited with
507 semicolon. Use the pragma -oldstyle_urls to get the old "&"
508 delimiter.
509
510 Version 2.63
511
512 1. Fixed CGI::Push to pull out parameters correctly.
513 2. Fixed redirect() so that it works with default character set
514 3. Changed param() so as to returned empty string '' when referring
515 to variables passed in query strings like 'name1=&name2'
516
517 Version 2.62
518
519 1. Fixed broken ReadParse() function, and added regression tests
520 2. Fixed broken CGI::Pretty, and added regression tests
521
522 Version 2.61
523
524 1. Moved more functions from CGI.pm proper into CGI/Util.pm.
525 CGI/Cookie should now be standalone.
526 2. Disabled per-user temporary directories, which were causing grief.
527
528 Version 2.60
529
530 1. Fixed junk appearing in autogenerated HTML functions when using
531 object-oriented mode.
532
533 Version 2.59
534
535 1. autoescape functionality breaks too much existing code, removed
536 it.
537 2. use escapeHTML() manually
538
539 Version 2.58
540
541 This is the release version of 2.57.
542
543 Version 2.57
544
545 1. Added -debug pragma and turned off auto reading of STDIN.
546 2. Default DTD updated to HTML 4.01 transitional.
547 3. Added charset() method and the -charset argument to header().
548 4. Fixed behavior of escapeHTML() to respect charset() and to escape
549 nasty Windows characters (thanks to Tom Christiansen).
550 5. Handle REDIRECT_QUERY_STRING correctly.
551 6. Removed use_named_parameters() because of dependency problems and
552 general lameness.
553 7. Fixed problems with bad HREF links generated by url(-relative=>1)
554 when the url is like /people/.
555 8. Silenced a warning on upload (patch provided by Jonas Liljegren)
556 9. Fixed race condition in CGI::Carp when errors occur during parsing
557 (patch provided by Maurice Aubrey).
558 10. Fixed failure of url(-path_info=>1) when path contains % signs.
559 11. Fixed warning from CGI::Cookie when receiving foreign cookies that
560 don't use name=value format.
561 12. Fixed incompatibilities with file uploading on VMS systems.
562
563 Version 2.56
564
565 1. Fixed bugs in file upload introduced in version 2.55
566 2. Fixed long-standing bug that prevented two files with identical
567 names from being uploaded.
568
569 Version 2.55
570
571 1. Fixed cookie regression test so as not to produce an error.
572 2. Fixed path_info() and self_url() to work correctly together when
573 path_info() modified.
574 3. Removed manify warnings from CGI::{Switch,Apache}.
575
576 Version 2.54
577
578 1. This will be the last release of the monolithic CGI.pm module.
579 Later versions will be modularized and optimized.
580 2. DOMAIN tag no longer added to cookies by default. This will break
581 some versions of Internet Explorer, but will avoid breaking
582 networks which use host tables without fully qualified domain
583 names. For compatibility, please always add the -domain tag when
584 creating cookies.
585 3. Fixed escape() method so that +'s are treated correctly.
586 4. Updated CGI::Pretty module.
587
588 Version 2.53
589
590 1. Forgot to upgrade regression tests before releasing 2.52. NOTHING
591 ELSE HAS CHANGED IN LIBRARY
592
593 Version 2.52
594
595 1. Spurious newline in checkbox() routine removed. (courtesy John
596 Essen)
597 2. TEXTAREA linebreaks now respected in dump() routine. (courtesy
598 John Essen)
599 3. Patches for DOS ports (courtesy Robert Davies)
600 4. Patches for VMS
601 5. More fixes for cookie problems
602 6. Fix CGI::Carp so that it doesn't affect eval{} blocks (courtesy
603 Byron Brummer)
604
605 Version 2.51
606
607 1. Fixed problems with cookies not being remembered when sent to IE
608 5.0 (and Netscape 5.0 too?)
609 2. Numerous HTML compliance problems in cgi_docs.html; fixed thanks
610 to Michael Leahy
611
612 Version 2.50
613
614 1. Added a new Vars() method to retrieve all parameters as a tied
615 hash.
616 2. Untainted tainted tempfile name so that script doesn't fail on
617 terminal unlink.
618 3. Made picking of upload tempfile name more intelligent so that
619 doesn't fail in case of name collision.
620 4. Fixed handling of expire times when passed an absolute timestamp.
621 5. Changed dump() to Dump() to avoid name clashes.
622
623 Version 2.49
624
625 1. Fixes for FastCGI (globals not getting reset)
626 2. Fixed url() to correctly handle query string and path under
627 MOD_PERL
628
629 Version 2.48
630
631 1. Reverted detection of MOD_PERL to avoid breaking PerlEX.
632
633 Version 2.47
634
635 1. Patch to fix file upload bug appearing in IE 3.01 for
636 Macintosh/PowerPC.
637 2. Replaced use of $ENV{SCRIPT_NAME} with $ENV{REQUEST_URI} when
638 running under Apache, to fix self-referencing URIs.
639 3. Fixed bug in escapeHTML() which caused certain constructs, such as
640 CGI->image_button(), to fail.
641 4. Fixed bug which caused strong('CGI') to fail. Be careful to use
642 CGI::strong('CGI') and not CGI->strong('CGI'). The latter will
643 produce confusing results.
644 5. Added upload() function, as a preferred replacement for the
645 "filehandle as string" feature.
646 6. Added cgi_error() function.
647 7. Rewrote file upload handling to return undef rather than dieing
648 when an error is encountered. Be sure to call cgi_error() to find
649 out what went wrong.
650
651 Version 2.46
652
653 1. Fix for failure of the "include" tests under mod_perl
654 2. Added end_multipart_form to prevent failures during qw(-compile
655 :all)
656
657 Version 2.45
658
659 1. Multiple small documentation fixes
660 2. CGI::Pretty didn't get into 2.44. Fixed now.
661
662 Version 2.44
663
664 1. Fixed file descriptor leak in upload function.
665 2. Fixed bug in header() that prevented fields from containing double
666 quotes.
667 3. Added Brian Paulsen's CGI::Pretty package for pretty-printing
668 output HTML.
669 4. Removed CGI::Apache and CGI::Switch from the distribution.
670 5. Generated start_* shortcuts so that start_table(), end_table(),
671 start_ol(), end_ol(), and so forth now work (see the docs on how
672 to enable this feature).
673 6. Changed accept() to Accept(), sub() to Sub(). There's still a
674 conflict with reset(), but this will break too many existing
675 scripts!
676
677 Version 2.43
678
679 1. Fixed problem with "use strict" and file uploads (thanks to Peter
680 Haworth)
681 2. Fixed problem with not MSIE 3.01 for the power_mac not doing file
682 uploads right.
683 3. Fixed problem with file upload on IIS 4.0 when authorization in
684 use.
685 4. -content_type and '-content-type' can now be provided to header()
686 as synonyms for -type.
687 5. CGI::Carp now escapes the ampersand BEFORE escaping the > and <
688 signs.
689 6. Fixed "not an array reference" error when passing a hash reference
690 to radio_group().
691 7. Fixed non-removal of uploaded TMP files on NT platforms which
692 occurs when server runs on non-C drive (thanks to Steve Kilbane
693 for finding this one).
694
695 Version 2.42
696
697 1. Too many screams of anguish at changed behavior of url(). Is now
698 back to its old behavior by default, with options to generate all
699 the variants.
700 2. Added regression tests. "make test" now works.
701 3. Documentation fixes.
702 4. Fixes for Macintosh uploads, but uploads STILL do not work pending
703 changes to MacPerl.
704
705 Version 2.41
706
707 1. url() method now includes the path info. Use script_name() to get
708 it without path info().
709 2. Changed handling of empty attributes in HTML tag generation. Be
710 warned! Use table({-border=>undef}) rather than
711 table({-border=>''}).
712 3. Changes to allow uploaded filenames to be compared to other
713 strings with "eq", "cmp" and "ne".
714 4. Changes to allow CGI.pm to coexist more peacefully with
715 ActiveState PerlEX.
716 5. Changes to prevent exported variables from clashing when importing
717 ":all" set in combination with cookies.
718
719 Version 2.40
720
721 1. CGI::Carp patched to work better with mod_perl (thanks to Chris
722 Dean).
723 2. Uploads of files whose names begin with numbers or the Windows
724 \\UNC\shared\file nomenclature should no longer fail.
725 3. The <STYLE> tag (for cascading style sheets) now generates the
726 required TYPE attribute.
727 4. Server push primitives added, thanks to Ed Jordan.
728 5. Table and other HTML3 functions are now part of the :standard set.
729 6. Small documentation fixes.
730
731 TO DO:
732 1. Do something about the DTD mess. The module should generate
733 correct DTDs, or at least offer the programmer a way to specify
734 the correct one.
735 2. Split CGI.pm into CGI processing and HTML-generating modules.
736 3. More robust file upload (?still not working on the Macintosh?).
737 4. Bring in all the HTML4 functionality, particular the accessibility
738 features.
739
740 Version 2.39
741
742 1. file uploads failing because of VMS patch; fixed.
743 2. -dtd parameter was not being properly processed.
744
745 Version 2.38
746
747 I finally got tired of all the 2.37 betas and released 2.38. The main
748 difference between this version and the last 2.37 beta (2.37b30) are
749 some fixes for VMS. This should allow file upload to work properly on
750 all VMS Web servers.
751
752 Version 2.37, various beta versions
753
754 1. Added a CGI::Cookie::parse() method for lucky mod_perl users.
755 2. No longer need separate -values and -labels arguments for
756 multi-valued form elements.
757 3. Added better interface to raw cookies (fix courtesy Ken Fox,
758 kfox@ford.com)
759 4. Added param_fetch() function for direct access to parameter list.
760 5. Fix to checkbox() to allow for multi-valued single checkboxes
761 (weird problem).
762 6. Added a compile() method for those who want to compile without
763 importing.
764 7. Documented the import pragmas a little better.
765 8. Added a -compile switch to the use clause for the long-suffering
766 mod_perl and Perl compiler users.
767 9. Fixed initialization routines so that FileHandle and type globs
768 work correctly (and hash initialization doesn't fail!).
769 10. Better deletion of temporary files on NT systems.
770 11. Added documentation on escape(), unescape(), unescapeHTML() and
771 unescapeHTML() subroutines.
772 12. Added documentation on creating subclasses.
773 13. Fixed problem when calling $self->SUPER::foo() from inheriting
774 subclasses.
775 14. Fixed problem using filehandles from within subroutines.
776 15. Fixed inability to use the string "CGI" as a parameter.
777 16. Fixed exponentially growing $FILLUNIT bug
778 17. Check for undef filehandle in read_from_client()
779 18. Now requires the UNIVERSAL.pm module, present in Perl 5.003_7 or
780 higher.
781 19. Fixed problem with uppercase-only parameters being ignored.
782 20. Fixed vanishing cookie problem.
783 21. Fixed warning in initialize_globals() under mod_perl.
784 22. File uploads from Macintosh versions of MSIE should now work.
785 23. Pragmas now preceded by dashes (-nph) rather than colons (:nph).
786 Old style is supported for backward compatability.
787 24. Can now pass arguments to all functions using {} brackets,
788 resolving historical inconsistencies.
789 25. Removed autoloader warnings about absent MultipartBuffer::DESTROY.
790 26. Fixed non-sticky checkbox() when -name used without -value.
791 27. Hack to fix path_info() in IIS 2.0. Doesn't help with IIS 3.0.
792 28. Parameter syntax for debugging from command line now more
793 straightforward.
794 29. Added $DISABLE_UPLOAD to disable file uploads.
795 30. Added $POST_MAX to error out if POSTings exceed some ceiling.
796 31. Fixed url_param(), which wasn't working at all.
797 32. Fixed variable suicide problem in s///e expressions, where the
798 autoloader was needed during evaluation.
799 33. Removed excess spaces between elements of checkbox and radio
800 groups
801 34. Can now create "valueless" submit buttons
802 35. Can now set path_info as well as read it.
803 36. ReadParse() now returns a useful function result.
804 37. import_names() now allows you to optionally clear out the
805 namespace before importing (for mod_perl users)
806 38. Made it possible to have a popup menu or radio button with a value
807 of "0".
808 39. link() changed to Link() to avoid overriding native link function.
809 40. Takes advantage of mod_perl's register_cleanup() function to clear
810 globals.
811 41. <LAYER> and <ILAYER> added to :html3 functions.
812 42. Fixed problems with private tempfiles and NT/IIS systems.
813 43. No longer prints the DTD by default (I bet no one will complain).
814 44. Allow underscores to replace internal hyphens in parameter names.
815 45. CGI::Push supports heterogeneous MIME types and adjustable delays
816 between pages.
817 46. url_param() method added for retrieving URL parameters even when a
818 fill-out form is POSTed.
819 47. Got rid of warnings when radio_group() is called.
820 48. Cookies now moved to their very own module.
821 49. Fixed documentation bug in CGI::Fast.
822 50. Added a :no_debug pragma to the import list.
823
824 Version 2.36
825
826 1. Expanded JavaScript functionality
827 2. Preliminary support for cascading stylesheets
828 3. Security fixes for file uploads:
829 + Module will bail out if its temporary file already exists
830 + Temporary files can now be made completely private to avoid
831 peeking by other users or CGI scripts.
832 4. use CGI qw/:nph/ wasn't working correctly. Now it is.
833 5. Cookie and HTTP date formats didn't meet spec. Thanks to Mark
834 Fisher (fisherm@indy.tce.com) for catching and fixing this.
835
836 p
837
838 Version 2.35
839
840 1. Robustified multipart file upload against incorrect syntax in
841 POST.
842 2. Fixed more problems with mod_perl.
843 3. Added -noScript parameter to start_html().
844 4. Documentation fixes.
845
846 Version 2.34
847
848 1. Stupid typo fix
849
850 Version 2.33
851
852 1. Fixed a warning about an undefined environment variable.
853 2. Doug's patch for redirect() under mod_perl
854 3. Partial fix for busted inheritence from CGI::Apache
855 4. Documentation fixes.
856
857 Version 2.32
858
859 1. Improved support for Apache's mod_perl.
860 2. Changes to better support inheritance.
861 3. Support for OS/2.
862
863 Version 2.31
864
865 1. New uploadInfo() method to obtain header information from uploaded
866 files.
867 2. cookie() without any arguments returns all the cookies passed to a
868 script.
869 3. Removed annoying warnings about $ENV{NPH} when running with the -w
870 switch.
871 4. Removed operator overloading throughout to make compatible with
872 new versions of perl.
873 5. -expires now implies the -date header, to avoid clock skew.
874 6. WebSite passes cookies in $ENV{COOKIE} rather than
875 $ENV{HTTP_COOKIE}. We now handle this, even though it's O'Reilly's
876 fault.
877 7. Tested successfully against new sfio I/O layer.
878 8. Documentation fixes.
879
880 Version 2.30
881
882 1. Automatic detection of operating system at load time.
883 2. Changed select() function to Select() in order to avoid conflict
884 with Perl built-in.
885 3. Added Tr() as an alternative to TR(); some people think it looks
886 better that way.
887 4. Fixed problem with autoloading of MultipartBuffer::DESTROY code.
888 5. Added the following methods:
889 + virtual_host()
890 + server_software()
891 6. Automatic NPH mode when running under Microsoft IIS server.
892
893 Version 2.29
894
895 1. Fixed cookie bugs
896 2. Fixed problems that cropped up when useNamedParameters was set to
897 1.
898 3. Prevent CGI::Carp::fatalsToBrowser() from crapping out when
899 encountering a die() within an eval().
900 4. Fixed problems with filehandle initializers.
901
902 Version 2.28
903
904 1. Added support for NPH scripts; also fixes problems with Microsoft
905 IIS.
906 2. Fixed a problem with checkbox() values not being correctly saved
907 and restored.
908 3. Fixed a bug in which CGI objects created with empty string
909 initializers took on default values from earlier CGI objects.
910 4. Documentation fixes.
911
912 Version 2.27
913
914 1. Small but important bug fix: the automatic capitalization of tag
915 attributes was accidentally capitalizing the VALUES as well as the
916 ATTRIBUTE names (oops).
917
918 Version 2.26
919
920 1. Changed behavior of scrolling_list(), checkbox() and
921 checkbox_group() methods so that defaults are honored correctly.
922 The "fix" causes endform() to generate additional <INPUT
923 TYPE="HIDDEN"> tags -- don't be surpised.
924 2. Fixed bug involving the detection of the SSL protocol.
925 3. Fixed documentation error in position of the -meta argument in
926 start_html().
927 4. HTML shortcuts now generate tags in ALL UPPERCASE.
928 5. start_html() now generates correct SGML header:
929 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
930
931 6. CGI::Carp no longer fails "use strict refs" pragma.
932
933 Version 2.25
934
935 1. Fixed bug that caused bad redirection on destination URLs with
936 arguments.
937 2. Fixed bug involving use_named_parameters() followed by
938 start_multipart_form()
939 3. Fixed bug that caused incorrect determination of binmode for
940 Macintosh.
941 4. Spelling fixes on documentation.
942
943 Version 2.24
944
945 1. Fixed bug that caused generation of lousy HTML for some form
946 elements
947 2. Fixed uploading bug in Windows NT
948 3. Some code cleanup (not enough)
949
950 Version 2.23
951
952 1. Fixed an obscure bug that caused scripts to fail mysteriously.
953 2. Fixed auto-caching bug.
954 3. Fixed bug that prevented HTML shortcuts from passing taint checks.
955 4. Fixed some -w warning problems.
956
957 Version 2.22
958
959 1. New CGI::Fast module for use with FastCGI protocol. See pod
960 documentation for details.
961 2. Fixed problems with inheritance and autoloading.
962 3. Added TR() (<tr>) and PARAM() (<param>) methods to list of
963 exported HTML tag-generating functions.
964 4. Moved all CGI-related I/O to a bottleneck method so that this can
965 be overridden more easily in mod_perl (thanks to Doug MacEachern).
966 5. put() method as substitute for print() for use in mod_perl.
967 6. Fixed crash in tmpFileName() method.
968 7. Added tmpFileName(), startform() and endform() to export list.
969 8. Fixed problems with attributes in HTML shortcuts.
970 9. Functions that don't actually need access to the CGI object now no
971 longer generate a default one. May speed things up slightly.
972 10. Aesthetic improvements in generated HTML.
973 11. New examples.
974
975 Version 2.21
976
977 1. Added the -meta argument to start_html().
978 2. Fixed hidden fields (again).
979 3. Radio_group() and checkbox_group() now return an appropriate
980 scalar value when called in a scalar context, rather than
981 returning a numeric value!
982 4. Cleaned up the formatting of form elements to avoid unesthetic
983 extra spaces within the attributes.
984 5. HTML elements now correctly include the closing tag when
985 parameters are present but null: em('')
986 6. Added password_field() to the export list.
987
988 Version 2.20
989
990 1. Dumped the SelfLoader because of problems with running with taint
991 checks and rolled my own. Performance is now significantly
992 improved.
993 2. Added HTML shortcuts.
994 3. import() now adheres to the Perl module conventions, allowing
995 CGI.pm to import any or all method names into the user's name
996 space.
997 4. Added the ability to initialize CGI objects from strings and
998 associative arrays.
999 5. Made it possible to initialize CGI objects with filehandle
1000 references rather than filehandle strings.
1001 6. Added the delete_all() and append() methods.
1002 7. CGI objects correctly initialize from filehandles on NT/95 systems
1003 now.
1004 8. Fixed the problem with binary file uploads on NT/95 systems.
1005 9. Fixed bug in redirect().
1006 10. Added '-Window-target' parameter to redirect().
1007 11. Fixed import_names() so that parameter names containing funny
1008 characters work.
1009 12. Broke the unfortunate connection between cookie and CGI parameter
1010 name space.
1011 13. Fixed problems with hidden fields whose values are 0.
1012 14. Cleaned up the documentation somewhat.
1013
1014 Version 2.19
1015
1016 1. Added cookie() support routines.
1017 2. Added -expires parameter to header().
1018 3. Added cgi-lib.pl compatability mode.
1019 4. Made the module more configurable for different operating systems.
1020 5. Fixed a dumb bug in JavaScript button() method.
1021
1022 Version 2.18
1023
1024 1. Fixed a bug that corrects a hang that occurs on some platforms
1025 when processing file uploads. Unfortunately this disables the
1026 check for bad Netscape uploads.
1027 2. Fixed bizarre problem involving the inability to process uploaded
1028 files that begin with a non alphabetic character in the file name.
1029 3. Fixed a bug in the hidden fields involving the -override directive
1030 being ignored when scalar defaults were passed.
1031 4. Added documentation on how to disable the SelfLoader features.
1032
1033 Version 2.17
1034
1035 1. Added support for the SelfLoader module.
1036 2. Added oodles of JavaScript support routines.
1037 3. Fixed bad bug in query_string() method that caused some parameters
1038 to be silently dropped.
1039 4. Robustified file upload code to handle premature termination by
1040 the client.
1041 5. Exported temporary file names on file upload.
1042 6. Removed spurious "uninitialized variable" warnings that appeared
1043 when running under 5.002.
1044 7. Added the Carp.pm library to the standard distribution.
1045 8. Fixed a number of errors in this documentation, and probably added
1046 a few more.
1047 9. Checkbox_group() and radio_group() now return the buttons as
1048 arrays, so that you can incorporate the individual buttons into
1049 specialized tables.
1050 10. Added the '-nolabels' option to checkbox_group() and
1051 radio_group(). Probably should be added to all the other
1052 HTML-generating routines.
1053 11. Added the url() method to recover the URL without the entire query
1054 string appended.
1055 12. Added request_method() to list of environment variables available.
1056 13. Would you believe it? Fixed hidden fields again!
1057
1058 Version 2.16
1059
1060 1. Fixed hidden fields yet again.
1061 2. Fixed subtle problems in the file upload method that caused
1062 intermittent failures (thanks to Keven Hendrick for this one).
1063 3. Made file upload more robust in the face of bizarre behavior by
1064 the Macintosh and Windows Netscape clients.
1065 4. Moved the POD documentation to the bottom of the module at the
1066 request of Stephen Dahmen.
1067 5. Added the -xbase parameter to the start_html() method, also at the
1068 request of Stephen Dahmen.
1069 6. Added JavaScript form buttons at Stephen's request. I'm not sure
1070 how to use this Netscape extension correctly, however, so for now
1071 the form() method is in the module as an undocumented feature. Use
1072 at your own risk!
1073
1074 Version 2.15
1075
1076 1. Added the -override parameter to all field-generating methods.
1077 2. Documented the user_name() and remote_user() methods.
1078 3. Fixed bugs that prevented empty strings from being recognized as
1079 valid textfield contents.
1080 4. Documented the use of framesets and added a frameset example.
1081
1082 Version 2.14
1083
1084 This was an internal experimental version that was never released.
1085
1086 Version 2.13
1087
1088 1. Fixed a bug that interfered with the value "0" being entered into
1089 text fields.
1090
1091 Version 2.01
1092
1093 1. Added -rows and -columns to the radio and checkbox groups. No
1094 doubt this will cause much grief because it seems to promise a
1095 level of meta-organization that it doesn't actually provide.
1096 2. Fixed a bug in the redirect() method -- it was not truly HTTP/1.0
1097 compliant.
1098
1099 Version 2.0
1100
1101 The changes seemed to touch every line of code, so I decided to bump
1102 up the major version number.
1103 1. Support for named parameter style method calls. This turns out
1104 to be a big win for extending CGI.pm when Netscape adds new HTML
1105 "features".
1106 2. Changed behavior of hidden fields back to the correct "sticky"
1107 behavior. This is going to break some programs, but it is for
1108 the best in the long run.
1109 3. Netscape 2.0b2 broke the file upload feature. CGI.pm now handles
1110 both 2.0b1 and 2.0b2-style uploading. It will probably break again
1111 in 2.0b3.
1112 4. There were still problems with library being unable to distinguish
1113 between a form being loaded for the first time, and a subsequent
1114 loading with all fields blank. We now forcibly create a default
1115 name for the Submit button (if not provided) so that there's
1116 always at least one parameter.
1117 5. More workarounds to prevent annoying spurious warning messages
1118 when run under the -w switch. -w is seriously broken in perl
1119 5.001!
1120
1121 Version 1.57
1122
1123 1. Support for the Netscape 2.0 "File upload" field.
1124 2. The handling of defaults for selected items in scrolling lists and
1125 multiple checkboxes is now consistent.
1126
1127 Version 1.56
1128
1129 1. Created true "pod" documentation for the module.
1130 2. Cleaned up the code to avoid many of the spurious "use of
1131 uninitialized variable" warnings when running with the -w switch.
1132 3. Added the autoEscape() method. v
1133 4. Added string interpolation of the CGI object.
1134 5. Added the ability to pass additional parameters to the <BODY> tag.
1135 6. Added the ability to specify the status code in the HTTP header.
1136
1137 Bug fixes in version 1.55
1138
1139 1. Every time self_url() was called, the parameter list would grow.
1140 This was a bad "feature".
1141 2. Documented the fact that you can pass "-" to radio_group() in
1142 order to prevent any button from being highlighted by default.
1143
1144 Bug fixes in version 1.54
1145
1146 1. The user_agent() method is now documented;
1147 2. A potential security hole in import() is now plugged.
1148 3. Changed name of import() to import_names() for compatability with
1149 CGI:: modules.
1150
1151 Bug fixes in version 1.53
1152
1153 1. Fixed several typos in the code that were causing the following
1154 subroutines to fail in some circumstances
1155 1. checkbox()
1156 2. hidden()
1157 2. No features added
1158
1159 New features added in version 1.52
1160
1161 1. Added backslashing, quotation marks, and other shell-style escape
1162 sequences to the parameters passed in during debugging off-line.
1163 2. Changed the way that the hidden() method works so that the default
1164 value always overrides the current one.
1165 3. Improved the handling of sticky values in forms. It's now less
1166 likely that sticky values will get stuck.
1167 4. If you call server_name(), script_name() and several other methods
1168 when running offline, the methods now create "dummy" values to
1169 work with.
1170
1171 Bugs fixed in version 1.51
1172
1173 1. param() when called without arguments was returning an array of
1174 length 1 even when there were no parameters to be had. Bad bug!
1175 Bad!
1176 2. The HTML code generated would break if input fields contained the
1177 forbidden characters ">< or &. You can now use these characters
1178 freely.
1179
1180 New features added in version 1.50
1181
1182 1. import() method allows all the parameters to be imported into a
1183 namespace in one fell swoop.
1184 2. Parameters are now returned in the same order in which they were
1185 defined.
1186
1187 Bugs fixed in version 1.45
1188
1189 1. delete() method didn't work correctly. This is now fixed.
1190 2. reset() method didn't allow you to set the name of the button.
1191 Fixed.
1192
1193 Bugs fixed in version 1.44
1194
1195 1. self_url() didn't include the path information. This is now fixed.
1196
1197 New features added in version 1.43
1198
1199 1. Added the delete() method.
1200
1201 New features added in version 1.42
1202
1203 1. The image_button() method to create clickable images.
1204 2. A few bug fixes involving forms embedded in <PRE> blocks.
1205
1206 New features added in version 1.4
1207
1208 1. New header shortcut methods
1209 + redirect() to create HTTP redirection messages.
1210 + start_html() to create the HTML title, complete with the
1211 recommended <LINK> tag that no one ever remembers to include.
1212 + end_html() for completeness' sake.
1213 2. A new save() method that allows you to write out the state of an
1214 script to a file or pipe.
1215 3. An improved version of the new() method that allows you to restore
1216 the state of a script from a file or pipe. With (2) this gives you
1217 dump and restore capabilities! (Wow, you can put a "121,931
1218 customers served" banner at the bottom of your pages!)
1219 4. A self_url() method that allows you to create state-maintaining
1220 hypertext links. In addition to allowing you to maintain the state
1221 of your scripts between invocations, this lets you work around a
1222 problem that some browsers have when jumping to internal links in
1223 a document that contains a form -- the form information gets lost.
1224 5. The user-visible labels in checkboxes, radio buttons, popup menus
1225 and scrolling lists have now been decoupled from the values sent
1226 to your CGI script. Your script can know a checkbox by the name of
1227 "cb1" while the user knows it by a more descriptive name. I've
1228 also added some parameters that were missing from the text fields,
1229 such as MAXLENGTH.
1230 6. A whole bunch of methods have been added to get at environment
1231 variables involved in user verification and other obscure
1232 features.
1233
1234 Bug fixes
1235
1236 1. The problems with the hidden fields have (I hope at last) been
1237 fixed.
1238 2. You can create multiple query objects and they will all be
1239 initialized correctly. This simplifies the creation of multiple
1240 forms on one page.
1241 3. The URL unescaping code works correctly now.