- bug 114 corrected : webmaster mail address protection. Ability to set an invalid mail address (but not during installation)
git-svn-id: http://piwigo.org/svn/branches/branch-1_4@788 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
93277f9fbb
commit
4647d2281a
1 changed files with 2 additions and 6 deletions
|
@ -66,12 +66,8 @@ if (isset($_POST['submit']))
|
|||
{
|
||||
array_push($errors, $lang['conf_prefix_thumbnail_error']);
|
||||
}
|
||||
// mail must be formatted as follows : name@server.com
|
||||
$pattern = '/^[\w-]+(\.[\w-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/';
|
||||
if (!preg_match($pattern, $_POST['mail_webmaster']))
|
||||
{
|
||||
array_push($errors, $lang['conf_mail_webmaster_error']);
|
||||
}
|
||||
// as webmaster mail address shown on the website, it can be obfuscated
|
||||
// and no comply with normal mail address pattern
|
||||
break;
|
||||
}
|
||||
case 'comments' :
|
||||
|
|
Loading…
Reference in a new issue