mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
672a539964
commit
5a8a18ec60
@ -478,7 +478,7 @@ sub FB_CALLMONITOR_loadInternalPhonebookFile($)
|
|||||||
$contact_name = $1;
|
$contact_name = $1;
|
||||||
Log GetLogLevel($name, 4), "FB_CALLMONITOR: $name found $contact_name";
|
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")
|
if($1 ne "intern" and $1 ne "memo")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user