summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhttpd/cgi-bin/check10
1 files changed, 2 insertions, 8 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 27e613b..5e8a4bb 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -2778,14 +2778,8 @@ sub prepCGI
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';