瀏覽代碼

Security: protected bulk modify against HTTP/Post piracy

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1476 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 年之前
父節點
當前提交
7369f9c350
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/UI.php

+ 4 - 0
pages/UI.php

@@ -979,6 +979,10 @@ EOF
 
 		case 'preview_or_modify_all': // Preview or apply bulk modify
 		$sFilter = utils::ReadParam('filter', '', false, 'raw_data');
+		// TO DO: limit the search filter by the user context
+		$oFilter = DBObjectSearch::unserialize($sFilter); // TO DO : check that the filter is valid
+		$oChecker = new ActionChecker($oFilter, UR_ACTION_BULK_MODIFY);
+
 		$sClass = utils::ReadParam('class', '', false, 'class');
 		$bPreview = utils::ReadParam('preview_mode', '');
 		$sSelectedObj = utils::ReadParam('selectObj', '');