mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Ensure that request_id has no \r or \n characters.
This commit is contained in:
parent
87c3df891b
commit
a02fffa4ca
@ -399,7 +399,7 @@ sub run_curl {
|
|||||||
my $line = $_;
|
my $line = $_;
|
||||||
|
|
||||||
# Grab the web server request_id for later reference
|
# Grab the web server request_id for later reference
|
||||||
if ($line =~ /^Request-ID: (.*?)$/) {
|
if ($line =~ /^Request-ID: (.*?)\s*$/) {
|
||||||
$ENV{REQUEST_ID} = $1;
|
$ENV{REQUEST_ID} = $1;
|
||||||
$request_id = $1;
|
$request_id = $1;
|
||||||
print $REQUEST_ID_FILE "$1\n";
|
print $REQUEST_ID_FILE "$1\n";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user