mirror of
https://github.com/curl/curl.git
synced 2026-05-30 11:27:29 +03:00
tests/runner: only allow [!A-Za-z0-9_-] in %if feature names
... in the %if preprocessor parser. This guards against accidentally getting a carriage-return part of the feature name. Fixes #14403 Closes #14411
This commit is contained in:
parent
b0394b1535
commit
48818a41af
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ sub prepro {
|
|||
for my $s (@entiretest) {
|
||||
my $f = $s;
|
||||
$line++;
|
||||
if($s =~ /^ *%if (.*)/) {
|
||||
if($s =~ /^ *%if ([A-Za-z0-9!_-]*)/) {
|
||||
my $cond = $1;
|
||||
my $rev = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue