From dc59ad1784d0591488d794be63014e47a834ed12 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 18 Feb 2003 15:26:38 +0000 Subject: [w3m-dev 03753] Fixed multipart.cgi * scripts/multipart/multipart.cgi.in: remove w3m-control use input hidden add form_encode From: Hironori SAKAMOTO --- ChangeLog | 9 ++++++++- scripts/multipart/multipart.cgi.in | 23 ++++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index efcd441..2b7bf55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-02-19 Hironori SAKAMOTO + + * [w3m-dev 03753] Fixed multipart.cgi + * scripts/multipart/multipart.cgi.in: remove w3m-control + use input hidden + add form_encode + 2003-02-18 WATANABE Katsuyuki * [w3m-dev 03749] README.cygwin @@ -7167,4 +7174,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.752 2003/02/17 16:02:04 ukai Exp $ +$Id: ChangeLog,v 1.753 2003/02/18 15:26:38 ukai Exp $ diff --git a/scripts/multipart/multipart.cgi.in b/scripts/multipart/multipart.cgi.in index 1dd981a..db8001c 100644 --- a/scripts/multipart/multipart.cgi.in +++ b/scripts/multipart/multipart.cgi.in @@ -77,7 +77,11 @@ if (defined($v{'count'})) { $_ = &decode($_, $MIME_DECODE); } if (s/^(\S+)\s*:\s*//) { - $hbody .= "$&$_\n"; + $h = $&; + if ($h =~ /^w3m-control/i) { + $h = "WARNING: $h"; + } + $hbody .= "$h$_\n"; $p = $1; $p =~ tr/A-Z/a-z/; $header{$p} = $_; @@ -192,9 +196,16 @@ while(! $end) { } else { $name = "Content"; } - print "
\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; if ($image) { - print "\n"; } else { print ""\177-\377]/sprintf('%%%02X', unpack('C', $&))/eg; + return $_; +} + sub guess_type { local($_) = @_; -- cgit v1.2.3