Changeset 8838
- Timestamp:
- 05/07/08 18:53:50 (5 years ago)
- Files:
-
- branches/1.0/lib/helper/ObjectAdminHelper.php (modified) (1 diff)
- branches/1.0/lib/validator/sfEmailValidator.class.php (modified) (2 diffs)
- branches/1.0/test/unit/validator/sfEmailValidatorTest.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/helper/ObjectAdminHelper.php
r8831 r8838 41 41 if ($include_remove = _get_option($options, 'include_remove')) 42 42 { 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"; 44 44 } 45 45 } branches/1.0/lib/validator/sfEmailValidator.class.php
r8831 r8838 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 6 * (c) 2004-2006 Sean Kerr <sean@code-box.org> 7 * 7 * 8 8 * For the full copyright and license information, please view the LICENSE 9 9 * file that was distributed with this source code. … … 35 35 if ($strict == true) 36 36 { 37 $re = '/^([ a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/';37 $re = '/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i'; 38 38 } 39 39 else branches/1.0/test/unit/validator/sfEmailValidatorTest.php
r8831 r8838 4 4 * This file is part of the symfony package. 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 12 12 require_once($_test_dir.'/unit/sfContextMock.class.php'); 13 13 14 $t = new lime_test( 32, new lime_output_color());14 $t = new lime_test(28, new lime_output_color()); 15 15 16 16 $context = new sfContext(); … … 32 32 'example@localhost', 33 33 'example@example.com@example.com', 34 '<script>alert("t");</script>@toto.fr',35 34 ); 36 35 … … 46 45 'example@', 47 46 'example@example.com@example.com', 48 '<script>alert("t");</script>@toto.fr',49 47 ); 50 48