Detect and report malformed function calls that caused a forever loop.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2841 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-09-15 14:18:23 +00:00
parent b59a769cc3
commit b37455703c
1 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,10 @@ static void replaceFuncs(String &str)
evalFunc(v);
str = str.substr(0,p1) + v + str.substr(p2+1);
}
else {
Debug("RegexRoute",DebugWarn,"Unmatched function end: '%s'",str.c_str()+p1);
break;
}
}
}