From a02fffa4cae308bd0d4494f2253d6135a0fc6230 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sun, 21 Apr 2024 01:11:05 +1200 Subject: [PATCH] Ensure that request_id has no \r or \n characters. --- testing/dav_test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/dav_test b/testing/dav_test index 2b1c4c00..aaf7f00d 100755 --- a/testing/dav_test +++ b/testing/dav_test @@ -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";