markup-validator commit: allow additional ua info from config file

changeset:   3297:2befd7aa2e39
tag:         tip
user:        Ted Guild <ted@w3.org>
date:        Tue Mar 19 11:59:30 2013 -0400
files:       httpd/cgi-bin/check
description:
allow additional ua info from config file


diff -r 0907055456b2 -r 2befd7aa2e39 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') {

Received on Tuesday, 19 March 2013 16:01:31 UTC