Fix exclude-from-classmap handling to avoid foo matching foo* directories, fixes #8563, refs #8575

main
Jordi Boggiano 4 years ago
parent c7ba751319
commit 4d74f5ba95
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -901,7 +901,7 @@ INITIALIZER;
}
$resolvedPath = realpath($installPath . '/' . $updir);
$autoloads[] = preg_quote(strtr($resolvedPath, '\\', '/')) . '/' . $path;
$autoloads[] = preg_quote(strtr($resolvedPath, '\\', '/')) . '/' . $path . '($|/)';
continue;
}

@ -1525,8 +1525,8 @@ EOF;
'/composersrc/ClassToExclude.php',
'/composersrc/*/excluded/excsubpath',
'**/excsubpath',
'composers', // should _not_ cause exclusion of /composersrc/**
'/src-ca/', // should _not_ cause exclusion of /src-cake/**
'composers', // should _not_ cause exclusion of /composersrc/**, as it is equivalent to /composers/**
'/src-ca/', // should _not_ cause exclusion of /src-cake/**, as it is equivalent to /src-ca/**
),
));

Loading…
Cancel
Save