Ignore:
Timestamp:
Mar 14, 2013, 4:23:37 PM (11 years ago)
Author:
mistic100
Message:

directly use Piwigo functions for email and url check (break compatibility < 2.5)

File:
1 edited

Legend:

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

    r20181 r21542  
    7474    $comm['email'] = $user['email'];
    7575  }
    76   else if ( !empty($comm['email']) and !gb_is_valid_email($comm['email']) )
     76  else if ( !empty($comm['email']) and !email_check_format($comm['email']) )
    7777  {
    7878    array_push($page['errors'], l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)'));
     
    8585    $comm['website'] = 'http://'.$comm['website'];
    8686  }
    87   if ( !empty($comm['website']) and !gb_is_valid_url($comm['website']) )
     87  if ( !empty($comm['website']) and !url_check_format($comm['website']) )
    8888  {
    8989    array_push($page['errors'], l10n('invalid website address'));
Note: See TracChangeset for help on using the changeset viewer.