Strip ./ & / from beginning of legaldirs when comparing against checked in
files. Explicitly check for "." & "/" when matching directory names. Bug #260310 r=timeless
This commit is contained in:
Родитель
5f5d16d6d9
Коммит
5c76f1ac59
|
@ -173,7 +173,8 @@ FILE:
|
|||
$full = "$dir/$f";
|
||||
LEGALDIR:
|
||||
foreach $d (sort( grep(!/\*$/, @::LegalDirs))) {
|
||||
if ($full =~ m!^$d\b!) {
|
||||
$d =~ s@^[\.]/@@;
|
||||
if ($d eq "\." || $d eq "/" || $full =~ m!^$d\b/!) {
|
||||
$okdir = 1;
|
||||
last LEGALDIR;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче