summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Guild <ted@w3.org>2013-03-19 11:59:30 -0400
committerTed Guild <ted@w3.org>2013-03-19 11:59:30 -0400
commit8f756b4acb09994a115e29f54672eaecd169a88d (patch)
treee961b7f7a389a1dd490880a4c8380ef2d3d49632
parentd686e08c53dde3e133cd81a381149bd5c63ed010 (diff)
downloadmarkup-validator-8f756b4acb09994a115e29f54672eaecd169a88d.zip
markup-validator-8f756b4acb09994a115e29f54672eaecd169a88d.tar.gz
markup-validator-8f756b4acb09994a115e29f54672eaecd169a88d.tar.bz2
allow additional ua info from config file
-rwxr-xr-xhttpd/cgi-bin/check2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 9738554..c5341c8 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -370,7 +370,7 @@ $File->{Opt}->{DOCTYPE} = $q->param('doctype') || '';
$File->{Opt}->{'User Agent'} =
$q->param('user-agent') &&
$q->param('user-agent') ne "1" ? $q->param('user-agent') :
- "W3C_Validator/$VERSION";
+ "W3C_Validator/$VERSION " . $CFG->{'User Agent Info'};
$File->{Opt}->{'User Agent'} =~ tr/\x00-\x09\x0b\x0c-\x1f//d;
if ($File->{Opt}->{'User Agent'} eq 'mobileok') {