diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 71acb098c..b86893d42 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -1918,7 +1918,7 @@ GlobalAttr($$$$) my $modpath = "$val/FHEM"; opendir(DH, $modpath) || return "Can't read $modpath: $!"; - push @INC, $modpath if(!grep(/$modpath/, @INC)); + push @INC, $modpath if(!grep(/\Q$modpath\E/, @INC)); $attr{global}{version} = $cvsid; my $counter = 0;