Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.utils.security.php

    r5928 r7655  
    6868        function SecurityUtils($tagsArray = array(), $attrArray = array(), $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) { 
    6969                // 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]); 
    7272                // assign to member vars 
    7373                $this->tagsArray = (array) $tagsArray; 
     
    110110                while($source != $this->filterTags($source)) { 
    111111                        $source = $this->filterTags($source); 
    112                         $loopCounter++; 
     112                        ++$loopCounter; 
    113113                } 
    114114                return $source; 
     
    135135                $newSet = array(); 
    136136                // process attributes 
    137                 for ($i = 0; $i <count($attrSet); $i++) { 
     137                for ($i = 0; $i <count($attrSet); ++$i) { 
    138138                        // skip blank spaces in tag 
    139139                        if (!$attrSet[$i]) continue; 
Note: See TracChangeset for help on using the changeset viewer.