From 721fabb6db080d4ac15788abf67c68743b9effac Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Tue, 11 Jun 2013 12:22:45 +0300 Subject: [PATCH] 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. --- helpers/ssl/cert_valid.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2