Development

Changeset 1495

You must first sign up to be able to contribute.

Changeset 1495

Show
Ignore:
Timestamp:
06/21/06 11:10:55 (2 years ago)
Author:
fabien
Message:

fixed sfStringValidator: whitespaces at the beginning (closes #634 - patch from bladus)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/validator/sfStringValidator.class.php

    r1415 r1495  
    5454    $min = $this->getParameterHolder()->get('min'); 
    5555 
    56     if ($min != null && strlen($value) < $min) 
     56    if ($min != null && strlen(trim($value)) < $min) 
    5757    { 
    5858      // too short 
     
    6464    $max = $this->getParameterHolder()->get('max'); 
    6565 
    66     if ($max != null && strlen($value) > $max) 
     66    if ($max != null && strlen(trim($value)) > $max) 
    6767    { 
    6868      // too long