diff --git a/fhem/contrib/pre-commit b/fhem/contrib/pre-commit index 8c19cc396..beb22327d 100755 --- a/fhem/contrib/pre-commit +++ b/fhem/contrib/pre-commit @@ -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