mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
pre-commit: fix space checking (Forum #97596)
git-svn-id: https://svn.fhem.de/fhem/trunk@18667 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eb24f962d9
commit
8c53bb0807
@ -28,7 +28,7 @@ EOF
|
||||
my $fList = `$svnlook changed $arg $repos`;
|
||||
foreach my $row (split("\n", $fList)) {
|
||||
chomp($row);
|
||||
my ($type, $fName) = split(" ", $row);
|
||||
my ($type, $fName) = split(" ", $row, 2);
|
||||
next if($type eq "D");
|
||||
next if(!$fName);
|
||||
my $pl = `svnlook pl $arg $repos $fName`;
|
||||
@ -55,8 +55,8 @@ foreach my $row (split("\n", $fList)) {
|
||||
next;
|
||||
}
|
||||
|
||||
err $fName, "filename contains strange characters (not A-Za-z0-9_.-%)"
|
||||
if($fName =~ m/[^A-Za-z0-9_.%-]/);
|
||||
err $fName, "filename ($fName) contains strange characters (not A-Za-z0-9_.-%)"
|
||||
if($fName =~ m/[^A-Za-z0-9_.%-\/]/);
|
||||
|
||||
next unless($fName =~ /\.pm$/);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user