Compiler: fixed issue with simple quotes in the OQL of a menu.

SVN:trunk[2089]
This commit is contained in:
Romain Quetiez
2012-06-11 14:15:53 +00:00
parent 34578ff831
commit 4f653d63b5

View File

@@ -830,7 +830,7 @@ EOF;
break;
case 'OQLMenuNode':
$sOQL = $oMenu->GetChildText('oql');
$sOQL = addslashes($oMenu->GetChildText('oql'));
$bSearch = ($oMenu->GetChildText('do_search') == '1') ? 'true' : 'false';
$sNewMenu = "new OQLMenuNode('$sMenuId', '$sOQL', $sParentSpec, $fRank, $bSearch);";
break;