diff options
author | link <link@localhost> | 2001-04-17 04:19:43 +0000 |
---|---|---|
committer | link <link@localhost> | 2001-04-17 04:19:43 +0000 |
commit | 6c117eff84840a1e266fe9152b3f0865138f25c1 (patch) | |
tree | 37bc7f902d367d892bf7646e9ff86f61d3e34f30 | |
parent | 3dadcfd040e65b0689a48d038aaa7f675083c166 (diff) | |
download | markup-validator-6c117eff84840a1e266fe9152b3f0865138f25c1.zip markup-validator-6c117eff84840a1e266fe9152b3f0865138f25c1.tar.gz markup-validator-6c117eff84840a1e266fe9152b3f0865138f25c1.tar.bz2 |
Fix two file-upload bugs with bogus uploads as reported by Bj?rn H?hrmann in
<URL:http://lists.w3.org/Archives/Public/www-validator/2001AprJun/0046.html>
<URL:http://lists.w3.org/Archives/Public/www-validator/2001AprJun/0030.html>
-rwxr-xr-x | htdocs/todo.html | 10 | ||||
-rwxr-xr-x | httpd/cgi-bin/check | 7 |
2 files changed, 6 insertions, 11 deletions
diff --git a/htdocs/todo.html b/htdocs/todo.html index ba77148..df1091a 100755 --- a/htdocs/todo.html +++ b/htdocs/todo.html @@ -8,7 +8,7 @@ W3C HTML Validation Service, To Do List"> <meta name="description" content="To Do List for W3C's Validation Service."> <meta name="revision" - content="$Id: todo.html,v 1.36 2001-04-15 20:52:53 link Exp $"> + content="$Id: todo.html,v 1.37 2001-04-17 04:19:43 link Exp $"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000ee" vlink="#551a8b"> @@ -162,12 +162,6 @@ <li> issue PICS labels for documents that do/don't conform? or for editing tools that don't conform? - <li>Don't choke on upload of bogus files (cf. <a - href="http://lists.w3.org/Archives/Public/www-validator/2001AprJun/0046.html">this</a> - and <a href="http://lists.w3.org/Archives/Public/www-validator/2001AprJun/0030.html">this</a> - message from <a href="mailto:bjoern@hoehrmann.de">Björn Höhrmann</a>. - Thanks Björn!)</li> - <li>Handle ISO-8859-8-I (cf. <a href="http://lists.w3.org/Archives/Public/www-validator/2001AprJun/0018.html">this</a> message from <a href="mailto:ticker@newmail.net">Udi Wertheimer</a>. Thanks Udi!)</li> @@ -202,7 +196,7 @@ src="http://validator.w3.org/images/vh40" height=31 width=88 align=right border=0 alt="Valid W3C HTML 4.0!"></a> <a href="/feedback.html">Gerald Oskoboiny</A><br> - $Date: 2001-04-15 20:52:53 $ + $Date: 2001-04-17 04:19:43 $ </address> </body> diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index d66005e..5dbc787 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -8,7 +8,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.93 2001-04-17 03:26:33 link Exp $ +# $Id: check,v 1.94 2001-04-17 04:19:43 link Exp $ # # We need Perl 5.004. @@ -74,9 +74,9 @@ my $element_ref = 'http://www.htmlhelp.com/reference/html40/'; # # Strings -$VERSION = q$Revision: 1.93 $; +$VERSION = q$Revision: 1.94 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; -$DATE = q$Date: 2001-04-17 03:26:33 $; +$DATE = q$Date: 2001-04-17 04:19:43 $; $MAINTAINER = 'gerald@w3.org'; $NOTICE = ''; # "<p><strong>Note: This service will be ...</strong>"; @@ -140,6 +140,7 @@ if ($q->param('url') and not $q->param('uri')) { # # Supercede URI with an uploaded file. if ($q->param('uploaded_file')) { + &redirect_to_home_page unless length($q->param('uri')); # Must have filename. $q->param('uri', 'upload://' . $q->param('uploaded_file')); } |