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