2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +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:
rudolfkoenig 2019-02-19 19:11:07 +00:00
parent 6e22290d19
commit f129928d71

View File

@ -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