Ensure that request_id has no \r or \n characters.

This commit is contained in:
Andrew Ruthven 2024-04-21 01:11:05 +12:00
parent 87c3df891b
commit a02fffa4ca

View File

@ -399,7 +399,7 @@ sub run_curl {
my $line = $_;
# Grab the web server request_id for later reference
if ($line =~ /^Request-ID: (.*?)$/) {
if ($line =~ /^Request-ID: (.*?)\s*$/) {
$ENV{REQUEST_ID} = $1;
$request_id = $1;
print $REQUEST_ID_FILE "$1\n";