فهرست منبع

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', '');