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