aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-05-14 12:56:48 +0000
committerplegall <plg@piwigo.org>2005-05-14 12:56:48 +0000
commit4647d2281a6741d82a56c61a9b1cc821134110aa (patch)
treef250fe794baf835b91512163bdb6ee23cec10b10
parent93277f9fbbdf7818da9a06779dcc5d1568a8e4a3 (diff)
- 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
-rw-r--r--admin/configuration.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index efc1ece79..35e92c5b9 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -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' :