mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
pre-commit: filtering strange characters (Forum #97596)
git-svn-id: https://svn.fhem.de/fhem/trunk@18648 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6e22290d19
commit
f129928d71
@ -55,6 +55,9 @@ 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_.%-]/);
|
||||
|
||||
next unless($fName =~ /\.pm$/);
|
||||
|
||||
# check for SVN Id
|
||||
|
Loading…
x
Reference in New Issue
Block a user