From 5a8a18ec60f9675f6cf8b5ec95988b7234b7fe59 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Thu, 3 Jan 2013 23:33:32 +0000 Subject: [PATCH] fixing regex race condition git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2425 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/72_FB_CALLMONITOR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/72_FB_CALLMONITOR.pm b/FHEM/72_FB_CALLMONITOR.pm index 6acda5cb0..9876a90e1 100755 --- a/FHEM/72_FB_CALLMONITOR.pm +++ b/FHEM/72_FB_CALLMONITOR.pm @@ -478,7 +478,7 @@ sub FB_CALLMONITOR_loadInternalPhonebookFile($) $contact_name = $1; Log GetLogLevel($name, 4), "FB_CALLMONITOR: $name found $contact_name"; - while($contact =~ m/]+?type="(\w+?)"[^>]*?>(.+?)<\/number>/gs) + while($contact =~ m/]*?type="([^<>"]+?)"[^<>]*?>([^<>"]+?)<\/number>/gs) { if($1 ne "intern" and $1 ne "memo") {