mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
pre-commit: filtering strange characters (Forum #97596)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18648 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
934275523c
commit
54c4929f66
@ -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