From: Christos Tsantilas Date: Tue, 11 Jun 2013 09:22:45 +0000 (+0300) Subject: Minor fix for cert validator helper messages parsing X-Git-Tag: SQUID_3_4_0_1~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=721fabb6db080d4ac15788abf67c68743b9effac;p=thirdparty%2Fsquid.git Minor fix for cert validator helper messages parsing Allow "host=" cert validation message parameter exist anywhere in the message. Currently supposed to be always the first parameter of the message. --- diff --git a/helpers/ssl/cert_valid.pl b/helpers/ssl/cert_valid.pl index 1992563a78..41a19848d7 100755 --- a/helpers/ssl/cert_valid.pl +++ b/helpers/ssl/cert_valid.pl @@ -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;