Forráskód Böngészése

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 éve
szülő
commit
afb08949a5
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;