Fixed unescaping of handler filter parameters.

This allows filter name or value to contain characters like : or %.
Patch provided by Vasily i. Redkin.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6303 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2018-03-21 13:31:09 +00:00
parent 698b55da64
commit 49de800994
1 changed files with 2 additions and 2 deletions

View File

@ -1404,8 +1404,8 @@ bool ExtModReceiver::processLine(const char* line)
static const Regexp r("^\\([^:]*\\):\\([^:]*\\):\\?\\(.*\\)");
if (id.matches(r)) {
// a filter is specified
fname = id.matchString(2);
fvalue = id.matchString(3);
fname = String::msgUnescape(id.matchString(2));
fvalue = String::msgUnescape(id.matchString(3));
id = id.matchString(1);
}
// sanity checks