W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2011

markup-validator commit: Don't treat empty uri= as uri=1.

From: Mercurial notifier <nobody@w3.org>
Date: Sun, 13 Mar 2011 11:12:07 +0000
Message-Id: <E1PyjDT-000727-7z@mcbain.w3.org>
To: markup-validator updates <www-validator-cvs@w3.org>
changeset:   3218:5397d1dc8889
tag:         tip
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Sun Mar 13 13:11:54 2011 +0200
files:       httpd/cgi-bin/check
description:
Don't treat empty uri= as uri=1.


diff -r ff04289cb4b8 -r 5397d1dc8889 httpd/cgi-bin/check
--- a/httpd/cgi-bin/check	Sun Mar 13 13:06:19 2011 +0200
+++ b/httpd/cgi-bin/check	Sun Mar 13 13:11:54 2011 +0200
@@ -2778,14 +2778,8 @@
         my @values = map { Encode::decode_utf8($_) } $q->param($param);
         $q->param($param, @values);
 
-        # Original checking had a specific Accept: header sent.
-        next if $param eq 'accept';
-
-        # Ditto Accept-Language:.
-        next if $param eq 'accept-language';
-
-        # Ditto Accept-Charset:.
-        next if $param eq 'accept-charset';
+        # Skip parameters that should not be treated as booleans.
+        next if $param =~ /^(?:accept(?:-(?:language|charset))?|ur[il])$/;
 
         # Keep false-but-set params.
         next if $q->param($param) eq '0';
Received on Sunday, 13 March 2011 11:12:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:45 UTC