fixing regex race condition

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2425 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-01-03 23:33:32 +00:00
parent 672a539964
commit 5a8a18ec60

View File

@ -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")
{