@@ 524-525 (lines=2) @@ | ||
521 | foreach ($arrProp as $propItem) { |
|
522 | $value = $objItem->{$propItem->Name}; //instead exploitable eval("\$value = \$objItem->".$propItem->Name.";"); |
|
523 | if (empty($strValue)) { |
|
524 | if (is_string($value)) $arrInstance[$propItem->Name] = trim($value); |
|
525 | else $arrInstance[$propItem->Name] = $value; |
|
526 | } else { |
|
527 | if (in_array($propItem->Name, $strValue)) { |
|
528 | if (is_string($value)) $arrInstance[$propItem->Name] = trim($value); |
|
@@ 526-531 (lines=6) @@ | ||
523 | if (empty($strValue)) { |
|
524 | if (is_string($value)) $arrInstance[$propItem->Name] = trim($value); |
|
525 | else $arrInstance[$propItem->Name] = $value; |
|
526 | } else { |
|
527 | if (in_array($propItem->Name, $strValue)) { |
|
528 | if (is_string($value)) $arrInstance[$propItem->Name] = trim($value); |
|
529 | else $arrInstance[$propItem->Name] = $value; |
|
530 | } |
|
531 | } |
|
532 | } |
|
533 | $arrData[] = $arrInstance; |
|
534 | } |