summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael[tm] Smith <mike@w3.org>2015-07-15 02:57:52 +0900
committerMichael[tm] Smith <mike@w3.org>2015-07-15 02:57:52 +0900
commit0f33aaa136d7786b6e838135865cf85b2ab8669e (patch)
tree2ee0b4e2ffcddc112d5f4172a103b81b8f9e70d9
parent91be942687b71558036da1948a837b50c9fcaef1 (diff)
downloadmarkup-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-xhttpd/cgi-bin/check2
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>";