浏览代码

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2089 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 年之前
父节点
当前提交
afb08949a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup/compiler.class.inc.php

+ 1 - 1
setup/compiler.class.inc.php

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