W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2013

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

From: Mercurial notifier <nobody@w3.org>
Date: Tue, 19 Mar 2013 16:01:23 +0000
Message-Id: <E1UHyyY-0000KZ-WF@mcbain.w3.org>
To: markup-validator updates <www-validator-cvs@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:54 UTC