diff options
author | Michael[tm] Smith <mike@w3.org> | 2015-07-15 02:57:52 +0900 |
---|---|---|
committer | Michael[tm] Smith <mike@w3.org> | 2015-07-15 02:57:52 +0900 |
commit | 0f33aaa136d7786b6e838135865cf85b2ab8669e (patch) | |
tree | 2ee0b4e2ffcddc112d5f4172a103b81b8f9e70d9 | |
parent | 91be942687b71558036da1948a837b50c9fcaef1 (diff) | |
download | markup-validator-0f33aaa136d7786b6e838135865cf85b2ab8669e.zip markup-validator-0f33aaa136d7786b6e838135865cf85b2ab8669e.tar.gz markup-validator-0f33aaa136d7786b6e838135865cf85b2ab8669e.tar.bz2 |
gzip-decode HTML5 direct input before sending
If the direct input we’re sending on hasn’t actually already been gzip-encoded,
the `decode()` call we make here is just a no-op.
-rwxr-xr-x | httpd/cgi-bin/check | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 05532a4..d9379b3 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -1098,6 +1098,8 @@ sub html5_validate (\$) } if ($File->{'Direct Input'}) { + # if $req isn't actually encoded, this decode() call does nothing + $req->decode("gzip"); print "Content-type: text/html\n\n"; print "<!doctype html>"; print "<style>.hide { display: none }</style>"; |