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 --- scripts/multipart/multipart.cgi.in | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'scripts') 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