LSYii_NonFormulaValidator
extends CValidator
in package
Validator class for potential CSV injection attacks.
Checks the value doesn't start with =, +, -, @, TAB, or Carriage Return.
Table of Contents
Constants
- NON_FORMULA_REGEX = '/^[=\\+\\-\\@\\t\\r]/'
Methods
- validateAttribute() : mixed
Constants
NON_FORMULA_REGEX
protected
mixed
NON_FORMULA_REGEX
= '/^[=\\+\\-\\@\\t\\r]/'
Methods
validateAttribute()
public
validateAttribute(mixed $object, mixed $attribute) : mixed
Parameters
- $object : mixed
- $attribute : mixed