svnno****@sourc*****
svnno****@sourc*****
2008年 1月 18日 (金) 13:28:43 JST
Revision: 428 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=428 Author: tach Date: 2008-01-18 13:28:42 +0900 (Fri, 18 Jan 2008) Log Message: ----------- Disable to change invalid email address Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/themes/slashcode/htdocs/users.pl -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2008-01-17 14:58:03 UTC (rev 427) +++ slashjp/trunk/debian/changelog 2008-01-18 04:28:42 UTC (rev 428) @@ -9,8 +9,9 @@ * Add to set nice value for slashd * Add to load /etc/default/slash for slashd * Change Email::Valid method to address() to reject wide chars + * Disable to change invalid email address - -- Taku YASUI <tach****@debia*****> Thu, 17 Jan 2008 23:56:52 +0900 + -- Taku YASUI <tach****@osdn*****> Fri, 18 Jan 2008 13:26:10 +0900 slash (2.5.0.188-6) unstable; urgency=low Modified: slashjp/trunk/themes/slashcode/htdocs/users.pl =================================================================== --- slashjp/trunk/themes/slashcode/htdocs/users.pl 2008-01-17 14:58:03 UTC (rev 427) +++ slashjp/trunk/themes/slashcode/htdocs/users.pl 2008-01-18 04:28:42 UTC (rev 428) @@ -2558,6 +2558,9 @@ if ($slashdb->existsEmail($form->{realemail})) { $note .= getError('emailexists_err', 0, 1); $form->{realemail} = $user_edit->{realemail}; # can't change! + } elsif (!emailValid($form->{realemail})) { + $note .= getError('email_invalid', 0, 1); + $form->{realemail} = $user_edit->{realemail}; # can't change! } }