fixing regex race condition
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2425 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -478,7 +478,7 @@ sub FB_CALLMONITOR_loadInternalPhonebookFile($)
|
||||
$contact_name = $1;
|
||||
Log GetLogLevel($name, 4), "FB_CALLMONITOR: $name found $contact_name";
|
||||
|
||||
while($contact =~ m/<number[^>]+?type="(\w+?)"[^>]*?>(.+?)<\/number>/gs)
|
||||
while($contact =~ m/<number[^>]*?type="([^<>"]+?)"[^<>]*?>([^<>"]+?)<\/number>/gs)
|
||||
{
|
||||
if($1 ne "intern" and $1 ne "memo")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user