- From: Ville Skytta <ville@dev.w3.org>
- Date: Thu, 24 Jun 2004 19:32:47 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv32642 Modified Files: Tag: validator-0_6_0-branch check Log Message: Pass only digest and basic auths with defined realms through. Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.305.2.145 retrieving revision 1.305.2.146 diff -u -d -r1.305.2.145 -r1.305.2.146 --- check 20 Jun 2004 19:33:45 -0000 1.305.2.145 +++ check 24 Jun 2004 19:32:45 -0000 1.305.2.146 @@ -1216,7 +1216,10 @@ for my $scheme (keys(%$authHeader)) { my $origrealm = $authHeader->{$scheme}->{realm}; - next unless defined($origrealm); + if (!defined($realm) || lc($scheme) !~ /^(?:basic|digest)$/) { + delete($authHeader->{$scheme}); + next; + } $authHeader->{$scheme}->{realm} = "$realm-$origrealm"; }
Received on Thursday, 24 June 2004 15:32:48 UTC