From eefe1497ffb967f3906326af18eda67df978b3cf Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Mon, 21 Oct 2013 20:41:33 +0000 Subject: [PATCH] fhem.pl fix from ChrisD (http://forum.fhem.de/index.php/topic,15188.0.html) git-svn-id: https://svn.fhem.de/fhem/trunk@4089 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;