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:
paulc 2009-03-11 15:13:33 +00:00
parent a105d65943
commit 6a4154f429
1 changed files with 2 additions and 1 deletions

View File

@ -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