Changeset 8831
- Timestamp:
- 05/07/08 11:37:45 (4 months 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
r8825 r8831 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
r7791 r8831 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 = '/^([ ^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i';37 $re = '/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/'; 38 38 } 39 39 else branches/1.0/test/unit/validator/sfEmailValidatorTest.php
r2276 r8831 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( 28, new lime_output_color());14 $t = new lime_test(32, 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', 34 35 ); 35 36 … … 45 46 'example@', 46 47 'example@example.com@example.com', 48 '<script>alert("t");</script>@toto.fr', 47 49 ); 48 50