summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Baudusseau <guibbs@users.noreply.github.com>2015-07-14 14:51:59 -0400
committerGuillaume Baudusseau <guibbs@users.noreply.github.com>2015-07-14 14:51:59 -0400
commit1697480595614ba2d35e09a13722d90879d1a856 (patch)
tree2ee0b4e2ffcddc112d5f4172a103b81b8f9e70d9
parent91be942687b71558036da1948a837b50c9fcaef1 (diff)
parent0f33aaa136d7786b6e838135865cf85b2ab8669e (diff)
downloadmarkup-validator-1697480595614ba2d35e09a13722d90879d1a856.zip
markup-validator-1697480595614ba2d35e09a13722d90879d1a856.tar.gz
markup-validator-1697480595614ba2d35e09a13722d90879d1a856.tar.bz2
Merge pull request #3 from w3c/sideshowbarker-patch-1
gzip-decode HTML5 direct input before sending
-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>";