Changeset 7655 for trunk/workflow/inc/class.utils.security.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.utils.security.php
r5928 r7655 68 68 function SecurityUtils($tagsArray = array(), $attrArray = array(), $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) { 69 69 // make sure user defined arrays are in lowercase 70 for ($i = 0; $i < count($tagsArray); $i++) $tagsArray[$i] = strtolower($tagsArray[$i]);71 for ($i = 0; $i < count($attrArray); $i++) $attrArray[$i] = strtolower($attrArray[$i]);70 for ($i = 0; $i < count($tagsArray); ++$i) $tagsArray[$i] = strtolower($tagsArray[$i]); 71 for ($i = 0; $i < count($attrArray); ++$i) $attrArray[$i] = strtolower($attrArray[$i]); 72 72 // assign to member vars 73 73 $this->tagsArray = (array) $tagsArray; … … 110 110 while($source != $this->filterTags($source)) { 111 111 $source = $this->filterTags($source); 112 $loopCounter++;112 ++$loopCounter; 113 113 } 114 114 return $source; … … 135 135 $newSet = array(); 136 136 // process attributes 137 for ($i = 0; $i <count($attrSet); $i++) {137 for ($i = 0; $i <count($attrSet); ++$i) { 138 138 // skip blank spaces in tag 139 139 if (!$attrSet[$i]) continue;
Note: See TracChangeset
for help on using the changeset viewer.