]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Minor fix for cert validator helper messages parsing
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 11 Jun 2013 09:22:45 +0000 (12:22 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 11 Jun 2013 09:22:45 +0000 (12:22 +0300)
Allow "host=" cert validation message parameter exist anywhere in the message.
Currently supposed to be always the first parameter of the message.

helpers/ssl/cert_valid.pl

index 1992563a787776e8e8410b90ef83dfc982a808cd..41a19848d7defa14e1233da8e96dc1b59bc9bdc2 100755 (executable)
@@ -175,7 +175,7 @@ sub parseRequest
             my($vallen) = index($request, "\n");
             my $host = substr($request, 5, $vallen - 5);
             $$hostname = $host;
-            $request =~ s/^host=.*\n//;
+            $request =~ s/^host=.*$//m;
         }
         if ($request =~ /^cert_(\d+)=/) {
             my $certId = "cert_".$1;