Changeset 5972
- Timestamp:
- 01/25/12 02:16:41 (4 months ago)
- Location:
- trunk/core/viewhelper/form/validators
- Files:
-
- 1 added
- 1 edited
-
maxlength.php (modified) (2 diffs)
-
minlength.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/viewhelper/form/validators/maxlength.php
r5923 r5972 46 46 } 47 47 48 /** 49 * Setter for the maximum length of the string. 50 * 51 * @param integer $maxlength 52 */ 48 53 public function setMaxlength($maxlength) 49 54 { 50 $this->maxlength = $maxlength;55 $this->maxlength = (int) $maxlength; 51 56 } 52 57 … … 81 86 public function processValidationLogic($value) 82 87 { 83 $length = self::getStringLength($value); 84 85 if ($length > $this->getMaxlength()) 88 if (self::getStringLength($value) >= $this->getMaxlength()) 86 89 { 87 90 return false;
Note: See TracChangeset
for help on using the changeset viewer.
