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