SQL escape engine runtime parameters substituted in init query.
Apply engine parameter substitution to indirect queries too. git-svn-id: http://yate.null.ro/svn/yate/trunk@2523 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
a105d65943
commit
6a4154f429
|
@ -347,6 +347,7 @@ void AAAHandler::indirectQuery(String& query)
|
|||
return;
|
||||
if (!query.startSkip("@",false))
|
||||
return;
|
||||
Engine::runParams().replaceParams(query,true);
|
||||
query.trimBlanks();
|
||||
if (query.null())
|
||||
return;
|
||||
|
@ -370,8 +371,8 @@ void AAAHandler::initQuery()
|
|||
if (m_account.null())
|
||||
return;
|
||||
String query = s_cfg.getValue(name(),"initquery");
|
||||
Engine::runParams().replaceParams(query);
|
||||
indirectQuery(query);
|
||||
Engine::runParams().replaceParams(query,true);
|
||||
if (query.null())
|
||||
return;
|
||||
// no error check needed as we can't fix - enqueue the query and we're out
|
||||
|
|
Loading…
Reference in New Issue