pkgsrc/www/tcl-cgi/patches/patch-aa

23 lines
741 B
Text
Raw Normal View History

2000-09-03 16:54:56 +02:00
$NetBSD: patch-aa,v 1.3 2000/09/03 14:55:20 wiz Exp $
Update to tcl-cgi-1.3, and adapt to tcl-8.3.2. Changes since tcl-cgi-0.8 include: 5/19/00 1.3.0 Changed many cgi_puts to cgi_put in hopes of addressing more of Zygo's 5/9/00 complaint (i.e., same problem in tables). 5/9/00 1.2.2 Zygo Blaxell <zblaxell@feedme.hungrycats.org> provided signif. cgi_input regexp speedup for long x=y-style values. He also noted that some browsers are sensitive to leading/following \n's in textarea and provided a patch to avoid adding them in the first place. James Ward <jew@rincon.com> noted absence of pkgIndex.tcl (presumably due to really old Tcl) broke installation. Fixed pkgcreate to create stub file to allow Make to complete. Robin Lauren <robin.lauren@novostore.com> contributed the doc in HTML form. Really need to automate this now, sigh. Jan.Vlcek@sasprg.cz observed that converting %XX to \u00XX and then using subst is only good for us-ascii and corrupts iso8859-1, iso8859-2, etc. He provided a patch for cgi_unquote_input. Ross Mohn <rpmohn@waxandwane.com> corrected syntax error in cgi_span and made <hr> handle width= better. Tore Morkemo provided a patch to his prior patch for cgi_eval. Asari Hirotsugu <asari@math.uiuc.edu> provided additional installation advice for Mac. 12/27/99 1.2.1 Tore Morkemo noted expires=never value of 9999 inappropriate as Netscape ignores anything beyond mid-January 2038. Tore also provided patch for cgi_eval when running inside of a proc. 12/20/99 1.2.0 Keith Lea <keith@cs.oswego.edu> noted 2-digit years as per RFC2109. Despite RFC, Netscape now accepts 4-digit years. Some browsers won't like this but it hardly matters anyway since they'll do the wrong thing on old 2-digit years come Y2K anyway. Petrus Vloet noted example/nistguest missing from distrib. 12/18/99 1.1.0 Tomas Soucek" <tomas.soucek@sasprg.cz> noted cgi_input was adding eol characters to uploaded files if they didn't contain them. Fixed this and also enhanced file upload example so that it could do both cat/od and also warn when Tcl couldn't do binary upload. Added braces around unprotected expressions. Added check to unimail example for HTTP_REFERER. Petrus Vloet requested Makefile install example data files. Added img.cgi example and modified frame example so it accepts "example=whatever" so that I can post URLs that go right to a particular example and have it framed. 9/12/99 1.0.0 Bumped version to 1 to pacify management. Jeffrey Hobbs rewrote cgi_unquote_input to take advantage of 8.2 features. 300% speed improvement! 7/16/99 0.8.1 Douglas Ridgway provided mod to make cgi_image_button handle optional args. Made code use straight cgi_input_multipart if on Tcl 8.1. Jeffrey Hobbs provided cgi_unquote_input that works better for 8.1. Petrus Vloet <petrus.vloet@siemens.at> requested sample data files for examples that need them; ability to change example install destination.
2000-08-30 17:42:58 +02:00
--- cgi.tcl.in.orig Wed Aug 30 11:07:29 2000
+++ cgi.tcl.in Wed Aug 30 11:08:26 2000
@@ -2040,7 +2040,7 @@
flush $_cgi(mailfid)
- if {[file executable /usr/lib/sendmail]} {
+ if {[file executable /usr/sbin/sendmail]} {
Update to tcl-cgi-1.3, and adapt to tcl-8.3.2. Changes since tcl-cgi-0.8 include: 5/19/00 1.3.0 Changed many cgi_puts to cgi_put in hopes of addressing more of Zygo's 5/9/00 complaint (i.e., same problem in tables). 5/9/00 1.2.2 Zygo Blaxell <zblaxell@feedme.hungrycats.org> provided signif. cgi_input regexp speedup for long x=y-style values. He also noted that some browsers are sensitive to leading/following \n's in textarea and provided a patch to avoid adding them in the first place. James Ward <jew@rincon.com> noted absence of pkgIndex.tcl (presumably due to really old Tcl) broke installation. Fixed pkgcreate to create stub file to allow Make to complete. Robin Lauren <robin.lauren@novostore.com> contributed the doc in HTML form. Really need to automate this now, sigh. Jan.Vlcek@sasprg.cz observed that converting %XX to \u00XX and then using subst is only good for us-ascii and corrupts iso8859-1, iso8859-2, etc. He provided a patch for cgi_unquote_input. Ross Mohn <rpmohn@waxandwane.com> corrected syntax error in cgi_span and made <hr> handle width= better. Tore Morkemo provided a patch to his prior patch for cgi_eval. Asari Hirotsugu <asari@math.uiuc.edu> provided additional installation advice for Mac. 12/27/99 1.2.1 Tore Morkemo noted expires=never value of 9999 inappropriate as Netscape ignores anything beyond mid-January 2038. Tore also provided patch for cgi_eval when running inside of a proc. 12/20/99 1.2.0 Keith Lea <keith@cs.oswego.edu> noted 2-digit years as per RFC2109. Despite RFC, Netscape now accepts 4-digit years. Some browsers won't like this but it hardly matters anyway since they'll do the wrong thing on old 2-digit years come Y2K anyway. Petrus Vloet noted example/nistguest missing from distrib. 12/18/99 1.1.0 Tomas Soucek" <tomas.soucek@sasprg.cz> noted cgi_input was adding eol characters to uploaded files if they didn't contain them. Fixed this and also enhanced file upload example so that it could do both cat/od and also warn when Tcl couldn't do binary upload. Added braces around unprotected expressions. Added check to unimail example for HTTP_REFERER. Petrus Vloet requested Makefile install example data files. Added img.cgi example and modified frame example so it accepts "example=whatever" so that I can post URLs that go right to a particular example and have it framed. 9/12/99 1.0.0 Bumped version to 1 to pacify management. Jeffrey Hobbs rewrote cgi_unquote_input to take advantage of 8.2 features. 300% speed improvement! 7/16/99 0.8.1 Douglas Ridgway provided mod to make cgi_image_button handle optional args. Made code use straight cgi_input_multipart if on Tcl 8.1. Jeffrey Hobbs provided cgi_unquote_input that works better for 8.1. Petrus Vloet <petrus.vloet@siemens.at> requested sample data files for examples that need them; ability to change example install destination.
2000-08-30 17:42:58 +02:00
exec /usr/lib/sendmail -t -odb < $_cgi(mailfile)
# Explanation:
# -t means: pick up recipient from body
Update to tcl-cgi-1.3, and adapt to tcl-8.3.2. Changes since tcl-cgi-0.8 include: 5/19/00 1.3.0 Changed many cgi_puts to cgi_put in hopes of addressing more of Zygo's 5/9/00 complaint (i.e., same problem in tables). 5/9/00 1.2.2 Zygo Blaxell <zblaxell@feedme.hungrycats.org> provided signif. cgi_input regexp speedup for long x=y-style values. He also noted that some browsers are sensitive to leading/following \n's in textarea and provided a patch to avoid adding them in the first place. James Ward <jew@rincon.com> noted absence of pkgIndex.tcl (presumably due to really old Tcl) broke installation. Fixed pkgcreate to create stub file to allow Make to complete. Robin Lauren <robin.lauren@novostore.com> contributed the doc in HTML form. Really need to automate this now, sigh. Jan.Vlcek@sasprg.cz observed that converting %XX to \u00XX and then using subst is only good for us-ascii and corrupts iso8859-1, iso8859-2, etc. He provided a patch for cgi_unquote_input. Ross Mohn <rpmohn@waxandwane.com> corrected syntax error in cgi_span and made <hr> handle width= better. Tore Morkemo provided a patch to his prior patch for cgi_eval. Asari Hirotsugu <asari@math.uiuc.edu> provided additional installation advice for Mac. 12/27/99 1.2.1 Tore Morkemo noted expires=never value of 9999 inappropriate as Netscape ignores anything beyond mid-January 2038. Tore also provided patch for cgi_eval when running inside of a proc. 12/20/99 1.2.0 Keith Lea <keith@cs.oswego.edu> noted 2-digit years as per RFC2109. Despite RFC, Netscape now accepts 4-digit years. Some browsers won't like this but it hardly matters anyway since they'll do the wrong thing on old 2-digit years come Y2K anyway. Petrus Vloet noted example/nistguest missing from distrib. 12/18/99 1.1.0 Tomas Soucek" <tomas.soucek@sasprg.cz> noted cgi_input was adding eol characters to uploaded files if they didn't contain them. Fixed this and also enhanced file upload example so that it could do both cat/od and also warn when Tcl couldn't do binary upload. Added braces around unprotected expressions. Added check to unimail example for HTTP_REFERER. Petrus Vloet requested Makefile install example data files. Added img.cgi example and modified frame example so it accepts "example=whatever" so that I can post URLs that go right to a particular example and have it framed. 9/12/99 1.0.0 Bumped version to 1 to pacify management. Jeffrey Hobbs rewrote cgi_unquote_input to take advantage of 8.2 features. 300% speed improvement! 7/16/99 0.8.1 Douglas Ridgway provided mod to make cgi_image_button handle optional args. Made code use straight cgi_input_multipart if on Tcl 8.1. Jeffrey Hobbs provided cgi_unquote_input that works better for 8.1. Petrus Vloet <petrus.vloet@siemens.at> requested sample data files for examples that need them; ability to change example install destination.
2000-08-30 17:42:58 +02:00
@@ -2056,6 +2056,9 @@
set s [socket $_cgi(mail_relay) 25]
gets $s answer
if {[lindex $answer 0] != 220} {error $answer}
+ puts $s "EHLO $host";flush $s
+ gets $s answer
+ if {[lindex $answer 0] != 250} {error $answer}
puts $s "MAIL FROM:<$_cgi(email)>";flush $s
gets $s answer
if {[lindex $answer 0] != 250} {error $answer}