Ignore:
Timestamp:
Dec 4, 2013, 10:03:45 PM (10 years ago)
Author:
mistic100
Message:

fix email validation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/include/functions_comment.inc.php

    r24889 r25786  
    7373  {
    7474    $comm['email'] = $user['email'];
     75  }
     76  else if ( empty($comm['email']) and $conf['comments_email_mandatory'] )
     77  {
     78    array_push($page['errors'], l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)'));
     79    $comment_action='reject';
    7580  }
    7681  else if ( !empty($comm['email']) and !email_check_format($comm['email']) )
Note: See TracChangeset for help on using the changeset viewer.