4 1. <optgroup> default values are now properly escaped.
5 Thanks to #raleigh.pm and Mark Stosberg. (RT#49606)
6 2. The change to exception handling in CGI::Carp introduced in 3.47 has been
7 reverted for now. It caused regressions reported in RT#49630.
8 Thanks to mkanat for the report.
11 1. Documentation for upload() has been overhauled, thanks to Mark Stosberg.
12 2. Documentation for tmpFileName has been added. Thanks to Mark Stosberg and Nathaniel K. Smith.
13 3. URLS were updated, thanks to Leon Brocard and Yanick Champoux. (RT#49770)
16 1. More tests were added for autoescape, thanks to Bob Kuo. (RT#25485)
19 Released September 9th, 2009.
23 Re-release of 3.46, which did not contain a proper MANIFEST
27 1. In CGI::Pretty, we no longer add line breaks after tags we claim not to format. Thanks to rrt, Bob Kuo and
28 and Mark Stosberg. (RT#42114).
29 2. unescapeHTML() no longer falsely recognizes certain text as entities. Thanks to Pete Gamanche, Mark Stosberg
30 and Bob Kuo. (RT#39122)
31 3. checkbox_group() now correctly includes a space before the "checked" attribute.
32 Thanks to Andrew Speer and Bob Kuo. (RT#36583)
33 4. Fix case-sensitivity in http() and https() according to docs. Make https()
34 return list of keys in list context. Thanks to riQyRoe and Rhesa Rozendaal. (RT#12909)
35 5. XHTML is now automatically disabled for HTML 4, as well as HTML 2 and HTML 3. Thanks to
36 Dan Harkless and Yanick Champoux. (RT#27907)
37 6. Pre-compiling 'end_form' with ':form' switch now works. Thanks to ryochin and Yanick Champoux. (RT#41530)
38 7. Empty name/values pairs are now properly saved and restored from filehandles. Thanks to rlucas and
39 Rhesa Rozendaal (RT#13158)
40 8. Some differences between startform() and start_form() have been fixed. Thanks to Slaven Rezic and
41 Shawn Corey. (RT#22046)
42 9. url_param() has been updated to be more consistent with the documentation and param().
43 Thanks to Britton Kerin and Yanick Campoux. (RT#43587)
44 10.hidden() now correctly supports multiple default values.
45 Thanks to david@dierauer.net and Russell Jenkins. (RT#20436)
46 11.Calling CGI->new() no longer clobbers the value of $_ in the current scope.
47 Thanks to Alexey Tourbin, Bob Kuo and Mark Stosberg. (RT#25131)
48 12.UTF-8 params should not get double-decoded now.
49 Thanks to Yves, Bodo, Burak Gürsoy, and Michael Schout. (RT#19913)
50 13.We now give objects passed to CGI::Carp::die a chance to be stringified.
51 Thanks to teek and Yanick Champoux (RT#41530)
52 14.Turning off autoEscape() now only affects the behavior of built-in HTML
53 generation fuctions. Explicit calls to escapeHTML() always escape HTML regardless
54 of the setting. Thanks to vindex, Bob Kuo and Mark Stosberg (RT#40748)
55 15.In CGI::Fast, preferences set via pragmas are now preserved.
56 Thanks to heinst and Mark Stosberg (RT#32119)
59 1. remote_addr() is now documented. Thanks to Yanick Champoux. (RT#38884)
60 2. In CGI::Pretty in the list of tags left unformatted was updated to match the code. Thanks to Mark Stosberg. (RT#42114)
61 3. In CGI::Pretty, performance concerns are now documented. Thanks to Jochen, Rhesa Rozendaal and Mark Stosberg (RT#13223)
62 4. A number of outdated Netscape references have been removed. Thanks to Mark Stosberg.
63 5. The documentation has been purged of examples of using indirect object notation. Thanks to Mark Stosberg.
64 6. Some POD formatting was fixed. Thanks to Dave Mitchell (RT#48935).
65 7. Docs and examples were updated to highlight start_form instead of startform.
66 Thanks to Slaven Rezic.
67 8. Note that CGI::Carp::carpout() doesn't work with in-memory filehandles.
68 Thanks to rhubbell and Mark Stosberg.
69 9. The documentation for the -newstyle_urls is now less confusing.
70 Thanks to Ryan Tate and Mark Stosberg (RT#49454)
73 1. Quit bundling an ancient copy of Test::More and and using a custom 'lib' path for the tests. Instead, Test::More
74 is now a dependency. Thanks to Ansgar and Mark Stosberg (RT#48811)
75 2. Automated tests for hidden() have been added, thanks to Russel Jenkins and Mark Stosberg (RT#20436)
76 3. t/util.t has been updated to use Test::More instead of a home-grown test function. Thanks to Bob Kuo.
80 1. Prevent warnings about "uninitialized values" for REQUEST_URI, HTTP_USER_AGENT and other environment variables.
81 Patches by Callum Gibson, heiko and Mark Stosberg. (RT#24684, RT#29065)
82 2. Avoid death in some cases when running under Taint mode on Windows.
83 Patch by Peter Hancock (RT#43796)
84 3. Allow 0 to be used as a default value in popup_menu(). This was broken starting in 3.37.
85 Thanks to Haze, who was the first to report this and supply a patch, and pfschill, who pinpointed
86 when the bug was introduced. A regression test for this was also added. (RT#37908)
87 4. Allow "+" as a valid character in file names, which fixes temp file creation on OS X Leopard.
88 Thanks to Andy Armstrong, and alech for patches. (RT#30504)
89 5. Set binmode() on the Netware platform, thanks to Guenter Knauf (RT#27455)
90 6. Don't allow a CGI::Carp error handler to die recursively. Print a warning and exit instead.
91 Thanks to Marc Chantreux. (RT#45956)
92 7. The Dump() method now is fixed to escape HTML properly. Thanks to Mark Stosberg (RT#21341)
93 8. Support for <optgroup> with scrolling_list() now works the same way as it does for popup_menu().
94 Thanks to Stuart Johnston (RT#30097)
95 9. CGI::Pretty now works properly when $" is set to ''. Thanks to Jim Keenan (RT#12401)
96 10. Fix crash when used in combination with PerlEx::DBI. Thanks to Burak Gürsoy (RT#19902)
99 1. Several typos were fixed, Thanks to ambs. (RT#41105)
100 2. A typo related to the nosticky pragma was fixed, thanks to Britton Kerin. (RT#43220)
101 3. examples/nph-clock.cgi is now more portable, by calling localtime() rather than `/bin/date`,
102 thanks to Guenter Knauf. (RT#27456).
103 4. In CGI::Carp, the SEE ALSO section was cleaned up, thanks to Slaven Rezic. (RT#32769)
104 5. The docs for redirect() were updated to reflect that most headers are
105 ignored during redirection. Thanks to Mark Stosberg (RT#44911)
108 1. New t/unescapeHTML.t test script has been added. It includes a TODO test for a pre-existing
109 bug which could use a patch. Thanks to Pete Gamache and Mark Stosberg (RT#39122)
110 2. New test scripts have been added for user_agent(), popup_menu() and query_string(), scrolling_list() and Dump()
111 Thanks to Mark Stosberg and Stuart Johnston. (RT#37908, RT#43006, RT#21341, RT#30097)
112 3. CGI::Carp and CGI::Util have been updated to have non-developer version numbers.
113 Thanks to Slaven Rezic. (RT#48425)
114 4. CGI::Switch and CGI::Apache now properly set their VERSION in their own name space.
115 Thanks to Alexey Tourbin (RT#11941,RT#11942)
118 1. Patch from Kurt Jaeger to allow HTTP PUT even if the content length is unknown.
119 2. Patch from Pavel merdin to fix a problem for one of the FireFox addons.
120 3. Fixed issue in mod_perl & fastCGI environment of cookies returned from
121 CGI->cookie() leaking from one session to another.
124 1. Documentation patch from MARKSTOS@cpan.org to replace all occurrences of
125 "new CGI" with CGI->new()" to reflect best perl practices.
126 2. Patch from Stepan Kasal to fix utf-8 related problems in perl 5.10
129 1. Added patch from Renee Baecker that makes it possible to subclass
131 2. Added patch from Nicholas Clark to allow ~ characters in temporary directories.
132 3. Added patch from Renee Baecker that fixes the inappropriate escaping of fields
133 in multipart headers.
136 1. Fix url() returning incorrect path when query string contains escaped newline.
137 2. Added additional windows temporary directories and environment variables, courtesy patch from Renee Baecker
138 3. Added a handle() method to the lightweight upload
139 filehandles. This method returns a real IO::Handle object.
140 4. Added patch from Tony Vanlingen to fix deep recursion warnings in CGI::Pretty.
143 1. Fixed CGI::Fast docs to eliminate references to a "special"
145 2. Makefile.PL now depends on FCGI so that CGI::Fast installs properly.
146 3. Fix script_name() call from Stephane Chazelas.
149 1. Fixed regression in "exists" function when using tied interface to CGI via $q->Vars.
152 1. Fix annoying warning in http://rt.cpan.org/Ticket/Display.html?id=34551
153 2. Added nobr() function http://rt.cpan.org/Ticket/Display.html?id=35377
154 3. popup_menu() allows multiple items to be selected by default, satisfying
155 http://rt.cpan.org/Ticket/Display.html?id=35376
156 4. Patch from Renee Backer to avoid doubled <http-equiv> headers.
157 5. Fixed documentation bug that describes what happens when a
158 parameter is empty (e.g. "?test1=").
159 6. Fixed minor warning described at http://rt.cpan.org/Public/Bug/Display.html?id=36435
160 7. Fixed overlap of attribute and parameter space described in http://rt.perl.org/rt3//Ticket/Display.html?id=24294
163 1. Fix pragmas so that they persist over modperl invocations (e.g. RT 34761)
164 2. Fixed handling of chunked multipart uploads; thanks to Michael Bernhardt
165 who reported and fixed the problem.
168 1. Fix CGI::Cookie to support cookies that are separated by "," instead of ";".
171 1. Resync with bleadperl, primarily fixing a bug in parsing semicolons in uploaded filenames.
174 1. Handle Unicode %uXXXX escapes properly -- patch from DANKOGAI@cpan.org
175 2. Fix url() method to not choke on path names that contain regex characters.
178 1. Remove uninit variable warning when calling url(-relative=>1)
179 2. Fix uninit variable warnings for two lc calls
180 3. Fixed failure of tempfile upload due to sprintf() taint failure in perl 5.10
183 1. Patch from Miguel Santinho to prevent sending premature headers under mod_perl 2.0
186 1. Patch from Xavier Robin so that CGI::Carp issues a 500 Status code rather than a 200 status code.
187 2. Patch from Alexander Klink to select correct temporary directory in OSX Leopard so that upload works.
188 3. Possibly fixed "wrapped pack" error on 5.10 and higher.
191 1. Patch from Mike Barry to handle POSTDATA in the same way as PUT.
192 2. Patch from Rafael Garcia-Suarez to correctly reencode unicode values as byte values.
195 1. The position of file handles is now reset to zero when CGI->new is called.
197 2. uploadInfo() now works across multiple object instances. Also, the first
198 tests for uploadInfo() were added as part of the fix. (CPAN bug 11895, with
199 contributions from drfrench and Mark Stosberg).
202 1. Applied patch from Allen Day that makes Cookie parsing RFC2109 compliant
203 (attribute/values can be separated by commas as well as semicolons).
204 2. Applied patch from Stephan Struckmann that allows script_name() to be set correctly.
205 3. Fixed problem with url(-full) in which port number appears twice.
208 1. Applied patch from Steve Taylor that allows checkbox_groups to be
209 disabled with a new -disabled=> option.
212 1. Fixed alternate stylesheet behavior so that it is insensitive to order of declarations.
213 2. Patch from John Binns to allow users to provide a callback to CGI::Carp.
214 3. Added "~" as an unreserved character in escape().
215 4. Patch from Chris Fedde to prevent HTTP_HOST from inhibiting SERVER_PORT in url() generation.
216 5. Fixed outdated documentation (and behavior) of -language in start_html -script option.
217 6. Fixed bug in seconds calculation in CGI::Util::expire_calc.
220 1. Fixed the link to the Netscape frames page.
221 2. Added ability to specify an alternate stylesheet.
222 3. Add support for XForms POST submssion both as application/xml or as multipart/related
225 1. In startform(), if request_uri() returns undef, then falls back
226 to self_url(). This should rarely happen except when run outside of
228 2. image button alignment options were mistakenly being capitalized, causing xhtml validation to fail.
231 1. Typo in upload() persisted, now fixed for real. Thanks to
232 Emanuele Zeppieri for correct patch and regression test.
235 1. Typo in upload() function broke uploads. Now fixed (CPAN bug 21126).
238 1. Don't try to read data at all when POST > $POST_MAX.
239 2. Fixed bug that caused $cgi->param('name',undef,'value') to unset param('name') entirely.
240 3. Fixed bug in which upload() sometimes returns empty. (CPAN bug #12694).
241 4. Incorporated patch from BURAK@cpan.org to support HTTPcookies (CPAN bug 21019).
244 1. Patch from David Wheeler for CGI::Cookie->bake(). Uses mod_perl headers_out->add()
245 rather than headers_out->set().
246 2. Fixed problem identified by Andrei Voronkov in which start_form() output was screwed
247 up when initial argument begins with a dash and subsequent arguments do not.
248 3. Quashed uninitialized variable warnings coming from script_name(), url() and other
249 functions that require access to the PATH_INFO environment variable.
252 1. Added patch from Stephen Frost that allows one to suppress use of the temp file that is
253 created during uploads.
254 2. Fixed problem noted by Martin Foster in which regular expression meta-character terms
255 in the path information were not quoted, causing URL parsing
256 to fail on URLs that contained metacharacters (such as +).
257 3. More fixes to the url() method.
258 4. Removed "hack to fix broken PATH_INFO in MSII".
262 2. Patch from Steve Peters to default the document type to match the charset.
263 3. Fixed param() so that param(-name=>'foo',-values=>[]) sets the parameter to empty list.
265 Version 3.17 Fri Feb 24 14:01:27 EST 2006
266 1. Added patch from Mike Hanafey which caused 0 arguments to CGI::Cookie->new() to
268 2. Patch to CGI::Carp from Peter Whaite to fix the unfixable problem of CGI::Carp
269 not behaving correctly in an eval() context.
270 3. CGI::Fast->new() calls CGI->_reset_globals to avoid contamination of one session
271 with another's variables.
272 4. Fixed upload failure on files that contain semicolons in their names.
274 Version 3.16 Wed Feb 8 13:29:11 EST 2006
275 1. header() -charset option now works even when the MIME type is not "text".
276 2. Fixed documentation for cookie() function and fastCGI.
277 3. Upload filehandles now only closed automatically on Windows systems.
278 4. Apache::Cookie compatibility fix from David Wheeler
279 5. CGI::Carp->fatalsToBrowser() does not work correctly with
280 mod_perl 2. No workaround is known.
281 6. Fixed text status code associated with 302 redirects. Should be "Found"
283 7. Fixed charset in start_html() and header() to be in synch.
285 Version 3.15 Wed Dec 7 15:13:22 EST 2005
286 1. Remove extraneous "?" from self_url() when URI contains a ? but no query string.
288 Version 3.14 Tue Dec 6 17:12:03 EST 2005
289 1. Fixed broken scrolling_list() select attribute.
292 1. Removed extraneous empty "?" from end of self_url().
295 1. Fixed virtual_port so that it works properly with https protocol.
296 2. Fixed documentation for upload_hook().
297 3. Added POSTDATA documentation.
298 4. Made upload_hook() work in function-oriented mode.
299 5. Fixed POST_MAX behavior so that it doesn't cause client to hang.
300 6. Disabled automatic tab indexes and added new -tabindex pragma to
301 turn automatic indexes back on.
302 7. The url() and self_url() methods now work better in the context of Apache
303 mod_rewrite. Be advised that path_info() may give you confusing results
304 when mod_rewrite is active because Apache calculates the path info *after*
305 rewriting. This is mostly worked around in url() and self_url(), but you
306 may notice some anomalies.
307 8. Removed empty (and non-validating) <div> from code emitted by end_form().
308 9. Fixed CGI::Carp to work correctly with Mod_perl 1.29 in an Apache 2 environment.
309 10. Setting $CGI::TMPDIRECTORY should now be effective.
312 1. Killed warning in CGI::Cookie about MOD_PERL_API_VERSION
313 2. Fixed append() so that it works in function mode.
314 3. Workaround for a bug that appears in Apache2 versions through 2.0.54
315 in which SCRIPT_NAME and PATH_INFO are incorrect if the additional path_info
316 contains a double slash. This workaround will handle the common case of
317 http://mysite.com/cgi-bin/log.cgi/http://www.some.other.site/args, but will
318 not handle the uncommon case of a ScriptAlias directive that adds additional
319 path information to the end of the translated URI.
322 1. Added Apache2::RequestIO, which is necessary for mp2 interoperability.
325 1. Fixed tabindex="0" when using CGI to create forms without a prior start_html
326 2. Removed warning about non-numeric MOD_PERL_API_VERSION.
329 1. update support for mod_perl 2.0. versions prior to
330 mod_perl 1.999_22 (2.0.0-RC5) are no longer supported.
333 1. Fixed typo in mod_perl detection.
337 1. Fixed bare call to script() in start_html
338 2. Moved Fh::DESTROY out of autoloaded functions so as to avoid
339 clobbering $@ when CGI functions are executed in an eval{}
341 3. mod_perl 2.0 version detection patch in CGI::Cookie provided by
343 4. autoEscape() flag is now respected when generating extra
345 5. Tests for *tag start/end generation from Shlomi Fish.
346 6. Support for can() method provided by Ron Savage.
347 7. Fix for lang='' when outputting XHTML.
348 8. Added support for chunked transfer encoding, as suggested by
350 9. Fixed clobbering of row and column headers in tableized radio
351 and checkbox groups, as reported by Nicolas Thierry-Mieg.
352 10. <Label> tags are now associated with form elements, as suggested
353 by accessibility guidelines.
354 11. The <?xml> directive produced by start_html is now turned off by
355 default and the charset is specified in a <meta> directive. Apparently
356 IE6 (and maybe some versions of Opera) were getting confused by this.
357 12. Support for tab indexes.
358 13. Retired the HTML docs. The POD docs are now primary documentation.
359 14. CGI::Carp now correctly detects and handles Apache::Dispatch.
360 15. CGI::Util::utf8_chr now correctly sets the UTF8 flag on 5.006 or
361 higher perls (fix courtesy Slaven Rezic).
366 1. Fixed uninitialized variable warning on start_form() when running
368 2. Fixed CGI::_set_attributes so that attributes with a - are handled
370 3. Fixed CGI::Carp::die() so as to avoid problems from _longmess()
372 4. If HTTP_X_FORWARDED_HOST is defined (i.e. running under a proxy),
373 the various functions that return HOST will use that instead.
374 5. Fix for undefined utf8() call in CGI::Util.
375 6. Changed the call to warningsToBrowser() in
376 CGI::Carp::fatalsToBrowser to call only after HTTP header is sent
377 (thanks to Didier Lebrun for noticing).
378 7. Patches from Dan Harkless to make CGI.pm validatable against HTML
380 8. Fixed an extraneous "foo=bar" appearing when extra style
381 parameters passed to start_html;
382 9. Fixed cross-site scripting bug in startform() pointed out by Dan
384 10. Fixed documentation to discuss list context behavior of
385 form-element generators explicitly.
386 11. Fixed incorrect results from end_form() when called in OO manner.
387 12. Fixed query string stripping in order to handle URLs containing
389 13. During server push, set NPH to 0 rather than 1. This is supposed
390 to fix problems with Apache.
391 14. Fixed incorrect processing of multipart form fields that contain
392 embedded quotes. There's still the issue of how to handle ones
393 that contain embedded semicolons, but no one has complained (yet).
394 15. Fixed documentation bug in -style argument to start_html()
395 16. Added -status argument to redirect().
399 1. Fixed the problem with mod_perl crashing when "defaults" button
404 1. Fix upload hook functionality
405 2. Workaround for CGI->unescape_html()
406 3. Bumped version numbers in CGI::Fast and CGI::Util for 5.8.3-tobe
410 1. Bring in Apache::Response just in case.
411 2. File upload on EBCDIC systems now works.
415 1. No fix yet for upload failures when running on EBCDIC server.
416 2. Fixed uninitialized glob warnings that appeared when file
417 uploading under perl 5.8.2.
418 3. Added patch from Schlomi Fish to allow debugging of PATH_INFO from
420 4. Added patch from Steve Hay to correctly unlink tmp files under
422 5. Added upload_hook functionality from Jamie LeTaul
423 6. Workarounds for mod_perl 2 IO issues. Check that file upload and
424 state saving still working.
425 7. Added code for underreads.
426 8. Fixed misleading description of redirect() and relative URLs in
428 9. Workaround for weird interaction of CGI::Carp with Safe module
429 reported by William McKee.
430 10. Added patches from Ilmari Karonen to improve behavior of
432 11. Fixed documentation error in -style argument.
433 12. Added virtual_port() method for finding out what port server is
434 listening on in a virtual-host aware fashion.
438 1. Patch from Randal Schwartz to fix bug introduced by cross-site
439 scripting vulnerability "fix."
440 2. Patch from JFreeman to replace UTF-8 escape constant of 0xfe with
441 0xfc. Hope this is right!
445 1. Patch from Steve Hay to fix extra Content-type: appearing on
446 browser screen when FatalsToBrowser invoked.
447 2. Patch from Ewann Corvellec to fix cross-site scripting
449 3. Fixed tmpdir routine for file uploading to solve problem that
450 occurs under mod_perl when tmpdir is writable at startup time, but
455 1. Fixed crash in Dump() function.
459 1. Sigh. Uploaded wrong 2.96 to CPAN.
463 1. More bugfixes to the -style argument.
467 1. Fixed bugs in start_html(-style=>...) support introduced in 2.94.
471 1. Removed warning from reset() method.
474 and tags into the :html3 group. Hope this removes undefined CGI::Area
477 Changed CGI::Carp to play with mod_perl2 and to (hopefully) restore
478 reporting of compile-time errors.
480 Fixed potential deadlock between web server and CGI.pm when aborting
481 a read due to POST_MAX (reported by Antti Lankila).
483 Fixed issue with tag-generating function not incorporating content
484 when first variable undef.
486 Fixed cross-site scripting bug reported by obscure.
488 Fixed Dump() function to return correctly formed XHTML - bug
489 reported by Ralph Siemsen.
493 1. Fixed embarassing bug in mp1 support.
497 1. Fix to be P3P compliant submitted from MPREWITT.
498 2. Added CGI->r() API for mod_perl1/mod_perl2.
499 3. Fixed bug in redirect() that was corrupting cookies.
500 4. Minor fix to behavior of reset() button to make it consistent with
501 submit() button (first time this has been changed in 9 years).
502 5. Patch from Dan Kogai to handle UTF-8 correctly in 5.8 and higher.
503 6. Patch from Steve Hay to make CGI::Carp's error messages appear on
505 7. Added Yair Lenga's patch for non-urlencoded postings.
506 8. Added Stas Bekman's patches for mod_perl 2 compatibility.
507 9. Fixed uninitialized escape behavior submitted by William Campbell.
508 10. Fixed tied behavior so that you can pass arguments to tie()
509 11. Fixed incorrect generation of URLs when the path_info contains +
510 and other odd characters.
511 12. Fixed redirect(-cookies=>$cookie) problem.
512 13. Fixed tag generation bug that affects -javascript passed to
517 1. Attribute generation now correctly respects the value of
519 2. Fixed endofrm() syntax error introduced by Ben Edgington's patch.
523 1. Fixed bug in redirect header handling.
524 2. Added P3P option to header().
525 3. Patches from Alexey Mahotkin to make CGI::Carp work correctly with
526 object-oriented exceptions.
527 4. Removed inaccurate description of how to set multiple cookies from
528 CGI::Cookie pod file.
529 5. Patch from Kevin Mahony to prevent running out of filehandles when
530 uploading lots of files.
531 6. Documentation enhancement from Mark Fisher to note that the
532 import_names() method transforms the parameter names into valid
534 7. Patch from Dan Harkless to suppress lang attribute in <html> tag
535 if specified as a null string.
536 8. Patch from Ben Edgington to fix broken XHTML-transitional 1.0
537 validation on endform().
538 9. Custom html header fix from Steffen Beyer (first letter correctly
540 10. Added a -verbatim option to stylesheet generation from Michael
542 11. Faster delete() method from Neelam Gupta
543 12. Fixed broken Cygwin support.
544 13. Added empty charset support from Bradley Baetz
545 14. Patches from Doug Perham and Kevin Mahoney to fix file upload
546 failures when uploaded file is a multiple of 4096.
550 1. Fixed behavior of ACTION tag when POSTING to a URL that has a
552 2. Added Patch from Michael Rommel to handle multipart/mixed uploads
557 1. Fixed problem with uploads being refused under Perl 5.8 when under
559 2. Fixed uninitialized variable warnings under Perl 5.8.
560 3. Fixed CGI::Pretty regression test failures.
564 1. Security hole patched: when processing multipart/form-data
565 postings, most arguments were being untainted silently. Returned
566 arguments are now tainted correctly. This may cause some scripts
567 to fail that used to work (thanks to Nick Cleaton for pointing
568 this out and persisting until it was fixed).
569 2. Update for mod_perl 2.0.
570 3. Pragmas such as -no_xhtml are now respected in mod_perl
575 1. Fixes for broken CGI::Cookie expiration dates introduced in 2.84.
579 1. Fix for broken autoEscape function introduced in 2.84.
583 1. Fix for failed file uploads on Cygwin platforms.
584 2. HTML escaping code now replaced 0x8b and 0x9b with unicode
585 references < and *#8250;
589 1. Fixed autoEscape() documentation inconsistencies.
590 2. Patch from Ville Skyttä to fix a number of XHTML inconsistencies.
591 3. Added Max-Age to list of CGI::Cookie headers.
595 1. Patch from Rudolf Troller to add attribute setting and option
596 groups to form fields.
597 2. Patch from Simon Perreault for silent crashes when using CGI::Carp
599 3. Patch from Scott Gifford allows you to set the program name for
604 1. Removed extraneous slash from end of stylesheet tags generated by
605 start_html in non-XHTML mode.
606 2. Changed behavior of CGI::Carp with respect to eval{} contexts so
607 that output behaves properly in mod_perl environments.
608 3. Fixed default DTD so that it validates with W3C validator.
612 1. Fixed broken messages in CGI::Carp.
613 2. Changed checked="1" to checked="checked" for real XHTML
615 3. Resurrected REQUEST_URI code so that url() works correctly with
620 1. Changes to CGI::Carp to avoid "subroutine redefined" error
622 2. Default DTD is now XHTML 1.0 Transitional
623 3. Patches to support all HTML4 tags.
627 1. Added ability to change encoding in <?xml> assertion.
628 2. Fixed the old escapeHTML('CGI') ne "CGI" bug
629 3. In accordance with XHTML requirements, there are no longer any
630 minimized attributes, such as "checked".
631 4. Patched bug which caused file uploads of exactly 4096 bytes to be
632 truncated to 4094 (thanks to Kevin Mahony)
633 5. New tests and fixes to CGI::Pretty (thanks to Michael Schwern).
637 1. No new features, but released in order to fix an apparent CPAN
642 1. New esc.t regression test for EBCDIC translations courtesy Peter
644 2. Patches from James Jurach to make compatible with FCGI-ProcManager
645 3. Additional fields passed to header() (like -Content_disposition)
646 now honor initial capitalization.
647 4. Patch from Andrew McNaughton to handle utf-8 escapes (%uXXXX
652 1. Syntax error in the autoloaded Fh::new() subroutine.
653 2. Better error reporting in autoloaded functions.
657 1. Tiny tweak to filename regular expression function on line 3355.
661 1. Fixed bug in server push boundary strings (CGI.pm and CGI::Push).
662 2. Fixed bug that occurs when uploading files with funny characters
664 3. Fixed non-XHTML-compliant attributes produced by textfield()
665 4. Added EPOC support, courtesy Olaf Flebbe
666 5. Fixed minor XHTML bugs.
667 6. Made escape() and unescape() symmetric with respect to EBCDIC,
668 courtesy Roca, Ignasi <ignasi.roca@fujitsu.siemens.es>
669 7. Removed uninitialized variable warning from CGI::Cookie, provided
670 by Atipat Rojnuckarin <rojnuca@yahoo.com>
671 8. Fixed bug in CGI::Pretty that causes it to print partial end tags
672 when the $INDENT global is changed.
673 9. Single quotes are changed to character entity ' for compatibility
679 1. Quashed one-character bug that caused CGI.pm to fail on file
685 1. Added -base to the list of arguments accepted by url().
686 2. Fixes to XHTML support.
687 3. POST parameters no longer show up in the Location box.
692 1. Fixed the defaults button so that it works again
693 2. Charset is now correctly saved and restored when saving to files
694 3. url() now works correctly when given scripts with %20 and other
695 escapes in the additional path info. This undoes a patch
696 introduced in version 2.47 that I no longer understand the
702 1. Newlines in the value attributes of hidden fields and other form
703 elements are now escaped when using ISO-Latin.
704 2. Inline script and style sections are now protected as CDATA
705 sections when XHTML mode is on (the default).
710 1. Fixed bug in scrolling_list() which omitted a space in front of
711 the "multiple" attribute.
712 2. Squashed the "useless use of string in void context" message from
717 1. startform() now creates default ACTION for POSTs as well as GETs.
718 This may break some browsers, but it no longer violates the HTML
720 2. CGI.pm now emits XHTML by default. Disable with -no_xhtml.
721 3. We no longer interpret &#ddd sequences in non-latin character
726 1. No longer attempts to escape characters when dealing with non
727 ISO-8861 character sets.
728 2. checkbox() function now defaults to using -value as its label,
729 rather than -name. The current behavior is what has been
730 documented from the beginning.
731 3. -style accepts array reference to incorporate multiple stylesheets
734 1. Fixed two bugs that caused the -compile pragma to fail with a
739 1. Added XHTML support (incomplete; tags need to be lowercased).
740 2. Fixed CGI/Carp when running under mod_perl. Probably broke in
742 3. Fixed problems when passing multiple cookies.
743 4. Suppress warnings from _tableize() that were appearing when using
744 -w switch with radio_group() and checkbox_group().
745 5. Support for the header() -attachment argument, which can give
746 pages a default file name when saving to disk.
750 1. 2.65 changes in make_attributes() broke HTTP header functions
751 (including redirect), so made it context sensitive.
755 1. Fixed regression tests to skip tests that require implicit fork on
756 machines without fork().
757 2. Changed make_attributes() to automatically escape any HTML
759 3. Minor documentation fix in javascript example.
763 1. Changes introduced in 2.63 broke param() when retrieving parameter
764 lists containing only a single argument. This is now fixed.
765 2. self_url() now defaults to returning parameters delimited with
766 semicolon. Use the pragma -oldstyle_urls to get the old "&"
771 1. Fixed CGI::Push to pull out parameters correctly.
772 2. Fixed redirect() so that it works with default character set
773 3. Changed param() so as to returned empty string '' when referring
774 to variables passed in query strings like 'name1=&name2'
778 1. Fixed broken ReadParse() function, and added regression tests
779 2. Fixed broken CGI::Pretty, and added regression tests
783 1. Moved more functions from CGI.pm proper into CGI/Util.pm.
784 CGI/Cookie should now be standalone.
785 2. Disabled per-user temporary directories, which were causing grief.
789 1. Fixed junk appearing in autogenerated HTML functions when using
790 object-oriented mode.
794 1. autoescape functionality breaks too much existing code, removed
796 2. use escapeHTML() manually
800 This is the release version of 2.57.
804 1. Added -debug pragma and turned off auto reading of STDIN.
805 2. Default DTD updated to HTML 4.01 transitional.
806 3. Added charset() method and the -charset argument to header().
807 4. Fixed behavior of escapeHTML() to respect charset() and to escape
808 nasty Windows characters (thanks to Tom Christiansen).
809 5. Handle REDIRECT_QUERY_STRING correctly.
810 6. Removed use_named_parameters() because of dependency problems and
812 7. Fixed problems with bad HREF links generated by url(-relative=>1)
813 when the url is like /people/.
814 8. Silenced a warning on upload (patch provided by Jonas Liljegren)
815 9. Fixed race condition in CGI::Carp when errors occur during parsing
816 (patch provided by Maurice Aubrey).
817 10. Fixed failure of url(-path_info=>1) when path contains % signs.
818 11. Fixed warning from CGI::Cookie when receiving foreign cookies that
819 don't use name=value format.
820 12. Fixed incompatibilities with file uploading on VMS systems.
824 1. Fixed bugs in file upload introduced in version 2.55
825 2. Fixed long-standing bug that prevented two files with identical
826 names from being uploaded.
830 1. Fixed cookie regression test so as not to produce an error.
831 2. Fixed path_info() and self_url() to work correctly together when
832 path_info() modified.
833 3. Removed manify warnings from CGI::{Switch,Apache}.
837 1. This will be the last release of the monolithic CGI.pm module.
838 Later versions will be modularized and optimized.
839 2. DOMAIN tag no longer added to cookies by default. This will break
840 some versions of Internet Explorer, but will avoid breaking
841 networks which use host tables without fully qualified domain
842 names. For compatibility, please always add the -domain tag when
844 3. Fixed escape() method so that +'s are treated correctly.
845 4. Updated CGI::Pretty module.
849 1. Forgot to upgrade regression tests before releasing 2.52. NOTHING
850 ELSE HAS CHANGED IN LIBRARY
854 1. Spurious newline in checkbox() routine removed. (courtesy John
856 2. TEXTAREA linebreaks now respected in dump() routine. (courtesy
858 3. Patches for DOS ports (courtesy Robert Davies)
860 5. More fixes for cookie problems
861 6. Fix CGI::Carp so that it doesn't affect eval{} blocks (courtesy
866 1. Fixed problems with cookies not being remembered when sent to IE
867 5.0 (and Netscape 5.0 too?)
868 2. Numerous HTML compliance problems in cgi_docs.html; fixed thanks
873 1. Added a new Vars() method to retrieve all parameters as a tied
875 2. Untainted tainted tempfile name so that script doesn't fail on
877 3. Made picking of upload tempfile name more intelligent so that
878 doesn't fail in case of name collision.
879 4. Fixed handling of expire times when passed an absolute timestamp.
880 5. Changed dump() to Dump() to avoid name clashes.
884 1. Fixes for FastCGI (globals not getting reset)
885 2. Fixed url() to correctly handle query string and path under
890 1. Reverted detection of MOD_PERL to avoid breaking PerlEX.
894 1. Patch to fix file upload bug appearing in IE 3.01 for
896 2. Replaced use of $ENV{SCRIPT_NAME} with $ENV{REQUEST_URI} when
897 running under Apache, to fix self-referencing URIs.
898 3. Fixed bug in escapeHTML() which caused certain constructs, such as
899 CGI->image_button(), to fail.
900 4. Fixed bug which caused strong('CGI') to fail. Be careful to use
901 CGI::strong('CGI') and not CGI->strong('CGI'). The latter will
902 produce confusing results.
903 5. Added upload() function, as a preferred replacement for the
904 "filehandle as string" feature.
905 6. Added cgi_error() function.
906 7. Rewrote file upload handling to return undef rather than dieing
907 when an error is encountered. Be sure to call cgi_error() to find
912 1. Fix for failure of the "include" tests under mod_perl
913 2. Added end_multipart_form to prevent failures during qw(-compile
918 1. Multiple small documentation fixes
919 2. CGI::Pretty didn't get into 2.44. Fixed now.
923 1. Fixed file descriptor leak in upload function.
924 2. Fixed bug in header() that prevented fields from containing double
926 3. Added Brian Paulsen's CGI::Pretty package for pretty-printing
928 4. Removed CGI::Apache and CGI::Switch from the distribution.
929 5. Generated start_* shortcuts so that start_table(), end_table(),
930 start_ol(), end_ol(), and so forth now work (see the docs on how
931 to enable this feature).
932 6. Changed accept() to Accept(), sub() to Sub(). There's still a
933 conflict with reset(), but this will break too many existing
938 1. Fixed problem with "use strict" and file uploads (thanks to Peter
940 2. Fixed problem with not MSIE 3.01 for the power_mac not doing file
942 3. Fixed problem with file upload on IIS 4.0 when authorization in
944 4. -content_type and '-content-type' can now be provided to header()
945 as synonyms for -type.
946 5. CGI::Carp now escapes the ampersand BEFORE escaping the > and <
948 6. Fixed "not an array reference" error when passing a hash reference
950 7. Fixed non-removal of uploaded TMP files on NT platforms which
951 occurs when server runs on non-C drive (thanks to Steve Kilbane
952 for finding this one).
956 1. Too many screams of anguish at changed behavior of url(). Is now
957 back to its old behavior by default, with options to generate all
959 2. Added regression tests. "make test" now works.
960 3. Documentation fixes.
961 4. Fixes for Macintosh uploads, but uploads STILL do not work pending
966 1. url() method now includes the path info. Use script_name() to get
967 it without path info().
968 2. Changed handling of empty attributes in HTML tag generation. Be
969 warned! Use table({-border=>undef}) rather than
970 table({-border=>''}).
971 3. Changes to allow uploaded filenames to be compared to other
972 strings with "eq", "cmp" and "ne".
973 4. Changes to allow CGI.pm to coexist more peacefully with
975 5. Changes to prevent exported variables from clashing when importing
976 ":all" set in combination with cookies.
980 1. CGI::Carp patched to work better with mod_perl (thanks to Chris
982 2. Uploads of files whose names begin with numbers or the Windows
983 \\UNC\shared\file nomenclature should no longer fail.
984 3. The <STYLE> tag (for cascading style sheets) now generates the
985 required TYPE attribute.
986 4. Server push primitives added, thanks to Ed Jordan.
987 5. Table and other HTML3 functions are now part of the :standard set.
988 6. Small documentation fixes.
991 1. Do something about the DTD mess. The module should generate
992 correct DTDs, or at least offer the programmer a way to specify
994 2. Split CGI.pm into CGI processing and HTML-generating modules.
995 3. More robust file upload (?still not working on the Macintosh?).
996 4. Bring in all the HTML4 functionality, particular the accessibility
1001 1. file uploads failing because of VMS patch; fixed.
1002 2. -dtd parameter was not being properly processed.
1006 I finally got tired of all the 2.37 betas and released 2.38. The main
1007 difference between this version and the last 2.37 beta (2.37b30) are
1008 some fixes for VMS. This should allow file upload to work properly on
1009 all VMS Web servers.
1011 Version 2.37, various beta versions
1013 1. Added a CGI::Cookie::parse() method for lucky mod_perl users.
1014 2. No longer need separate -values and -labels arguments for
1015 multi-valued form elements.
1016 3. Added better interface to raw cookies (fix courtesy Ken Fox,
1018 4. Added param_fetch() function for direct access to parameter list.
1019 5. Fix to checkbox() to allow for multi-valued single checkboxes
1021 6. Added a compile() method for those who want to compile without
1023 7. Documented the import pragmas a little better.
1024 8. Added a -compile switch to the use clause for the long-suffering
1025 mod_perl and Perl compiler users.
1026 9. Fixed initialization routines so that FileHandle and type globs
1027 work correctly (and hash initialization doesn't fail!).
1028 10. Better deletion of temporary files on NT systems.
1029 11. Added documentation on escape(), unescape(), unescapeHTML() and
1030 unescapeHTML() subroutines.
1031 12. Added documentation on creating subclasses.
1032 13. Fixed problem when calling $self->SUPER::foo() from inheriting
1034 14. Fixed problem using filehandles from within subroutines.
1035 15. Fixed inability to use the string "CGI" as a parameter.
1036 16. Fixed exponentially growing $FILLUNIT bug
1037 17. Check for undef filehandle in read_from_client()
1038 18. Now requires the UNIVERSAL.pm module, present in Perl 5.003_7 or
1040 19. Fixed problem with uppercase-only parameters being ignored.
1041 20. Fixed vanishing cookie problem.
1042 21. Fixed warning in initialize_globals() under mod_perl.
1043 22. File uploads from Macintosh versions of MSIE should now work.
1044 23. Pragmas now preceded by dashes (-nph) rather than colons (:nph).
1045 Old style is supported for backward compatability.
1046 24. Can now pass arguments to all functions using {} brackets,
1047 resolving historical inconsistencies.
1048 25. Removed autoloader warnings about absent MultipartBuffer::DESTROY.
1049 26. Fixed non-sticky checkbox() when -name used without -value.
1050 27. Hack to fix path_info() in IIS 2.0. Doesn't help with IIS 3.0.
1051 28. Parameter syntax for debugging from command line now more
1053 29. Added $DISABLE_UPLOAD to disable file uploads.
1054 30. Added $POST_MAX to error out if POSTings exceed some ceiling.
1055 31. Fixed url_param(), which wasn't working at all.
1056 32. Fixed variable suicide problem in s///e expressions, where the
1057 autoloader was needed during evaluation.
1058 33. Removed excess spaces between elements of checkbox and radio
1060 34. Can now create "valueless" submit buttons
1061 35. Can now set path_info as well as read it.
1062 36. ReadParse() now returns a useful function result.
1063 37. import_names() now allows you to optionally clear out the
1064 namespace before importing (for mod_perl users)
1065 38. Made it possible to have a popup menu or radio button with a value
1067 39. link() changed to Link() to avoid overriding native link function.
1068 40. Takes advantage of mod_perl's register_cleanup() function to clear
1070 41. <LAYER> and <ILAYER> added to :html3 functions.
1071 42. Fixed problems with private tempfiles and NT/IIS systems.
1072 43. No longer prints the DTD by default (I bet no one will complain).
1073 44. Allow underscores to replace internal hyphens in parameter names.
1074 45. CGI::Push supports heterogeneous MIME types and adjustable delays
1076 46. url_param() method added for retrieving URL parameters even when a
1077 fill-out form is POSTed.
1078 47. Got rid of warnings when radio_group() is called.
1079 48. Cookies now moved to their very own module.
1080 49. Fixed documentation bug in CGI::Fast.
1081 50. Added a :no_debug pragma to the import list.
1085 1. Expanded JavaScript functionality
1086 2. Preliminary support for cascading stylesheets
1087 3. Security fixes for file uploads:
1088 + Module will bail out if its temporary file already exists
1089 + Temporary files can now be made completely private to avoid
1090 peeking by other users or CGI scripts.
1091 4. use CGI qw/:nph/ wasn't working correctly. Now it is.
1092 5. Cookie and HTTP date formats didn't meet spec. Thanks to Mark
1093 Fisher (fisherm@indy.tce.com) for catching and fixing this.
1099 1. Robustified multipart file upload against incorrect syntax in
1101 2. Fixed more problems with mod_perl.
1102 3. Added -noScript parameter to start_html().
1103 4. Documentation fixes.
1111 1. Fixed a warning about an undefined environment variable.
1112 2. Doug's patch for redirect() under mod_perl
1113 3. Partial fix for busted inheritence from CGI::Apache
1114 4. Documentation fixes.
1118 1. Improved support for Apache's mod_perl.
1119 2. Changes to better support inheritance.
1120 3. Support for OS/2.
1124 1. New uploadInfo() method to obtain header information from uploaded
1126 2. cookie() without any arguments returns all the cookies passed to a
1128 3. Removed annoying warnings about $ENV{NPH} when running with the -w
1130 4. Removed operator overloading throughout to make compatible with
1131 new versions of perl.
1132 5. -expires now implies the -date header, to avoid clock skew.
1133 6. WebSite passes cookies in $ENV{COOKIE} rather than
1134 $ENV{HTTP_COOKIE}. We now handle this, even though it's O'Reilly's
1136 7. Tested successfully against new sfio I/O layer.
1137 8. Documentation fixes.
1141 1. Automatic detection of operating system at load time.
1142 2. Changed select() function to Select() in order to avoid conflict
1144 3. Added Tr() as an alternative to TR(); some people think it looks
1146 4. Fixed problem with autoloading of MultipartBuffer::DESTROY code.
1147 5. Added the following methods:
1150 6. Automatic NPH mode when running under Microsoft IIS server.
1154 1. Fixed cookie bugs
1155 2. Fixed problems that cropped up when useNamedParameters was set to
1157 3. Prevent CGI::Carp::fatalsToBrowser() from crapping out when
1158 encountering a die() within an eval().
1159 4. Fixed problems with filehandle initializers.
1163 1. Added support for NPH scripts; also fixes problems with Microsoft
1165 2. Fixed a problem with checkbox() values not being correctly saved
1167 3. Fixed a bug in which CGI objects created with empty string
1168 initializers took on default values from earlier CGI objects.
1169 4. Documentation fixes.
1173 1. Small but important bug fix: the automatic capitalization of tag
1174 attributes was accidentally capitalizing the VALUES as well as the
1175 ATTRIBUTE names (oops).
1179 1. Changed behavior of scrolling_list(), checkbox() and
1180 checkbox_group() methods so that defaults are honored correctly.
1181 The "fix" causes endform() to generate additional <INPUT
1182 TYPE="HIDDEN"> tags -- don't be surpised.
1183 2. Fixed bug involving the detection of the SSL protocol.
1184 3. Fixed documentation error in position of the -meta argument in
1186 4. HTML shortcuts now generate tags in ALL UPPERCASE.
1187 5. start_html() now generates correct SGML header:
1188 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
1190 6. CGI::Carp no longer fails "use strict refs" pragma.
1194 1. Fixed bug that caused bad redirection on destination URLs with
1196 2. Fixed bug involving use_named_parameters() followed by
1197 start_multipart_form()
1198 3. Fixed bug that caused incorrect determination of binmode for
1200 4. Spelling fixes on documentation.
1204 1. Fixed bug that caused generation of lousy HTML for some form
1206 2. Fixed uploading bug in Windows NT
1207 3. Some code cleanup (not enough)
1211 1. Fixed an obscure bug that caused scripts to fail mysteriously.
1212 2. Fixed auto-caching bug.
1213 3. Fixed bug that prevented HTML shortcuts from passing taint checks.
1214 4. Fixed some -w warning problems.
1218 1. New CGI::Fast module for use with FastCGI protocol. See pod
1219 documentation for details.
1220 2. Fixed problems with inheritance and autoloading.
1221 3. Added TR() (<tr>) and PARAM() (<param>) methods to list of
1222 exported HTML tag-generating functions.
1223 4. Moved all CGI-related I/O to a bottleneck method so that this can
1224 be overridden more easily in mod_perl (thanks to Doug MacEachern).
1225 5. put() method as substitute for print() for use in mod_perl.
1226 6. Fixed crash in tmpFileName() method.
1227 7. Added tmpFileName(), startform() and endform() to export list.
1228 8. Fixed problems with attributes in HTML shortcuts.
1229 9. Functions that don't actually need access to the CGI object now no
1230 longer generate a default one. May speed things up slightly.
1231 10. Aesthetic improvements in generated HTML.
1236 1. Added the -meta argument to start_html().
1237 2. Fixed hidden fields (again).
1238 3. Radio_group() and checkbox_group() now return an appropriate
1239 scalar value when called in a scalar context, rather than
1240 returning a numeric value!
1241 4. Cleaned up the formatting of form elements to avoid unesthetic
1242 extra spaces within the attributes.
1243 5. HTML elements now correctly include the closing tag when
1244 parameters are present but null: em('')
1245 6. Added password_field() to the export list.
1249 1. Dumped the SelfLoader because of problems with running with taint
1250 checks and rolled my own. Performance is now significantly
1252 2. Added HTML shortcuts.
1253 3. import() now adheres to the Perl module conventions, allowing
1254 CGI.pm to import any or all method names into the user's name
1256 4. Added the ability to initialize CGI objects from strings and
1258 5. Made it possible to initialize CGI objects with filehandle
1259 references rather than filehandle strings.
1260 6. Added the delete_all() and append() methods.
1261 7. CGI objects correctly initialize from filehandles on NT/95 systems
1263 8. Fixed the problem with binary file uploads on NT/95 systems.
1264 9. Fixed bug in redirect().
1265 10. Added '-Window-target' parameter to redirect().
1266 11. Fixed import_names() so that parameter names containing funny
1268 12. Broke the unfortunate connection between cookie and CGI parameter
1270 13. Fixed problems with hidden fields whose values are 0.
1271 14. Cleaned up the documentation somewhat.
1275 1. Added cookie() support routines.
1276 2. Added -expires parameter to header().
1277 3. Added cgi-lib.pl compatability mode.
1278 4. Made the module more configurable for different operating systems.
1279 5. Fixed a dumb bug in JavaScript button() method.
1283 1. Fixed a bug that corrects a hang that occurs on some platforms
1284 when processing file uploads. Unfortunately this disables the
1285 check for bad Netscape uploads.
1286 2. Fixed bizarre problem involving the inability to process uploaded
1287 files that begin with a non alphabetic character in the file name.
1288 3. Fixed a bug in the hidden fields involving the -override directive
1289 being ignored when scalar defaults were passed.
1290 4. Added documentation on how to disable the SelfLoader features.
1294 1. Added support for the SelfLoader module.
1295 2. Added oodles of JavaScript support routines.
1296 3. Fixed bad bug in query_string() method that caused some parameters
1297 to be silently dropped.
1298 4. Robustified file upload code to handle premature termination by
1300 5. Exported temporary file names on file upload.
1301 6. Removed spurious "uninitialized variable" warnings that appeared
1302 when running under 5.002.
1303 7. Added the Carp.pm library to the standard distribution.
1304 8. Fixed a number of errors in this documentation, and probably added
1306 9. Checkbox_group() and radio_group() now return the buttons as
1307 arrays, so that you can incorporate the individual buttons into
1309 10. Added the '-nolabels' option to checkbox_group() and
1310 radio_group(). Probably should be added to all the other
1311 HTML-generating routines.
1312 11. Added the url() method to recover the URL without the entire query
1314 12. Added request_method() to list of environment variables available.
1315 13. Would you believe it? Fixed hidden fields again!
1319 1. Fixed hidden fields yet again.
1320 2. Fixed subtle problems in the file upload method that caused
1321 intermittent failures (thanks to Keven Hendrick for this one).
1322 3. Made file upload more robust in the face of bizarre behavior by
1323 the Macintosh and Windows Netscape clients.
1324 4. Moved the POD documentation to the bottom of the module at the
1325 request of Stephen Dahmen.
1326 5. Added the -xbase parameter to the start_html() method, also at the
1327 request of Stephen Dahmen.
1328 6. Added JavaScript form buttons at Stephen's request. I'm not sure
1329 how to use this Netscape extension correctly, however, so for now
1330 the form() method is in the module as an undocumented feature. Use
1335 1. Added the -override parameter to all field-generating methods.
1336 2. Documented the user_name() and remote_user() methods.
1337 3. Fixed bugs that prevented empty strings from being recognized as
1338 valid textfield contents.
1339 4. Documented the use of framesets and added a frameset example.
1343 This was an internal experimental version that was never released.
1347 1. Fixed a bug that interfered with the value "0" being entered into
1352 1. Added -rows and -columns to the radio and checkbox groups. No
1353 doubt this will cause much grief because it seems to promise a
1354 level of meta-organization that it doesn't actually provide.
1355 2. Fixed a bug in the redirect() method -- it was not truly HTTP/1.0
1360 The changes seemed to touch every line of code, so I decided to bump
1361 up the major version number.
1362 1. Support for named parameter style method calls. This turns out
1363 to be a big win for extending CGI.pm when Netscape adds new HTML
1365 2. Changed behavior of hidden fields back to the correct "sticky"
1366 behavior. This is going to break some programs, but it is for
1367 the best in the long run.
1368 3. Netscape 2.0b2 broke the file upload feature. CGI.pm now handles
1369 both 2.0b1 and 2.0b2-style uploading. It will probably break again
1371 4. There were still problems with library being unable to distinguish
1372 between a form being loaded for the first time, and a subsequent
1373 loading with all fields blank. We now forcibly create a default
1374 name for the Submit button (if not provided) so that there's
1375 always at least one parameter.
1376 5. More workarounds to prevent annoying spurious warning messages
1377 when run under the -w switch. -w is seriously broken in perl
1382 1. Support for the Netscape 2.0 "File upload" field.
1383 2. The handling of defaults for selected items in scrolling lists and
1384 multiple checkboxes is now consistent.
1388 1. Created true "pod" documentation for the module.
1389 2. Cleaned up the code to avoid many of the spurious "use of
1390 uninitialized variable" warnings when running with the -w switch.
1391 3. Added the autoEscape() method. v
1392 4. Added string interpolation of the CGI object.
1393 5. Added the ability to pass additional parameters to the <BODY> tag.
1394 6. Added the ability to specify the status code in the HTTP header.
1396 Bug fixes in version 1.55
1398 1. Every time self_url() was called, the parameter list would grow.
1399 This was a bad "feature".
1400 2. Documented the fact that you can pass "-" to radio_group() in
1401 order to prevent any button from being highlighted by default.
1403 Bug fixes in version 1.54
1405 1. The user_agent() method is now documented;
1406 2. A potential security hole in import() is now plugged.
1407 3. Changed name of import() to import_names() for compatability with
1410 Bug fixes in version 1.53
1412 1. Fixed several typos in the code that were causing the following
1413 subroutines to fail in some circumstances
1416 2. No features added
1418 New features added in version 1.52
1420 1. Added backslashing, quotation marks, and other shell-style escape
1421 sequences to the parameters passed in during debugging off-line.
1422 2. Changed the way that the hidden() method works so that the default
1423 value always overrides the current one.
1424 3. Improved the handling of sticky values in forms. It's now less
1425 likely that sticky values will get stuck.
1426 4. If you call server_name(), script_name() and several other methods
1427 when running offline, the methods now create "dummy" values to
1430 Bugs fixed in version 1.51
1432 1. param() when called without arguments was returning an array of
1433 length 1 even when there were no parameters to be had. Bad bug!
1435 2. The HTML code generated would break if input fields contained the
1436 forbidden characters ">< or &. You can now use these characters
1439 New features added in version 1.50
1441 1. import() method allows all the parameters to be imported into a
1442 namespace in one fell swoop.
1443 2. Parameters are now returned in the same order in which they were
1446 Bugs fixed in version 1.45
1448 1. delete() method didn't work correctly. This is now fixed.
1449 2. reset() method didn't allow you to set the name of the button.
1452 Bugs fixed in version 1.44
1454 1. self_url() didn't include the path information. This is now fixed.
1456 New features added in version 1.43
1458 1. Added the delete() method.
1460 New features added in version 1.42
1462 1. The image_button() method to create clickable images.
1463 2. A few bug fixes involving forms embedded in <PRE> blocks.
1465 New features added in version 1.4
1467 1. New header shortcut methods
1468 + redirect() to create HTTP redirection messages.
1469 + start_html() to create the HTML title, complete with the
1470 recommended <LINK> tag that no one ever remembers to include.
1471 + end_html() for completeness' sake.
1472 2. A new save() method that allows you to write out the state of an
1473 script to a file or pipe.
1474 3. An improved version of the new() method that allows you to restore
1475 the state of a script from a file or pipe. With (2) this gives you
1476 dump and restore capabilities! (Wow, you can put a "121,931
1477 customers served" banner at the bottom of your pages!)
1478 4. A self_url() method that allows you to create state-maintaining
1479 hypertext links. In addition to allowing you to maintain the state
1480 of your scripts between invocations, this lets you work around a
1481 problem that some browsers have when jumping to internal links in
1482 a document that contains a form -- the form information gets lost.
1483 5. The user-visible labels in checkboxes, radio buttons, popup menus
1484 and scrolling lists have now been decoupled from the values sent
1485 to your CGI script. Your script can know a checkbox by the name of
1486 "cb1" while the user knows it by a more descriptive name. I've
1487 also added some parameters that were missing from the text fields,
1489 6. A whole bunch of methods have been added to get at environment
1490 variables involved in user verification and other obscure
1495 1. The problems with the hidden fields have (I hope at last) been
1497 2. You can create multiple query objects and they will all be
1498 initialized correctly. This simplifies the creation of multiple
1500 3. The URL unescaping code works correctly now.