allow additional ua info from config file
authorTed Guild <ted@w3.org>
Tue, 19 Mar 2013 11:59:30 -0400
changeset 3297 2befd7aa2e39
parent 3296 0907055456b2
child 3298 38450fd96a7a
allow additional ua info from config file
httpd/cgi-bin/check
--- a/httpd/cgi-bin/check	Tue Feb 12 21:28:07 2013 +0200
+++ b/httpd/cgi-bin/check	Tue Mar 19 11:59:30 2013 -0400
@@ -370,7 +370,7 @@
 $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') {