Development

Changeset 8831

You must first sign up to be able to contribute.

Changeset 8831

Show
Ignore:
Timestamp:
05/07/08 11:37:45 (4 months ago)
Author:
noel
Message:

fixed include_remove option not used in ObjectAdminHelper? (closes #2079)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/helper/ObjectAdminHelper.php

    r8825 r8831  
    4141    if ($include_remove = _get_option($options, 'include_remove')) 
    4242    { 
    43       $html .= checkbox_tag(strpos($name, ']') !== false ? substr($name, 0, -1).'_remove]' : $name).' '.($include_remove != true ? __($include_remove) : __('remove file'))."\n"; 
     43      $html .= checkbox_tag(strpos($name, ']') !== false ? substr($name, 0, -1).'_remove]' : $name).' '.($include_remove !== true ? __($include_remove) : __('remove file'))."\n"; 
    4444    } 
    4545  } 
  • branches/1.0/lib/validator/sfEmailValidator.class.php

    r7791 r8831  
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    66 * (c) 2004-2006 Sean Kerr <sean@code-box.org> 
    7  *  
     7 * 
    88 * For the full copyright and license information, please view the LICENSE 
    99 * file that was distributed with this source code. 
     
    3535    if ($strict == true) 
    3636    { 
    37       $re = '/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i'; 
     37      $re = '/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/'; 
    3838    } 
    3939    else 
  • branches/1.0/test/unit/validator/sfEmailValidatorTest.php

    r2276 r8831  
    44 * This file is part of the symfony package. 
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    1212require_once($_test_dir.'/unit/sfContextMock.class.php'); 
    1313 
    14 $t = new lime_test(28, new lime_output_color()); 
     14$t = new lime_test(32, new lime_output_color()); 
    1515 
    1616$context = new sfContext(); 
     
    3232  'example@localhost', 
    3333  'example@example.com@example.com', 
     34  '<script>alert("t");</script>@toto.fr', 
    3435); 
    3536 
     
    4546  'example@', 
    4647  'example@example.com@example.com', 
     48  '<script>alert("t");</script>@toto.fr', 
    4749); 
    4850