Revision 1197
Added by Luisehahne almost 16 years ago
| save.php | ||
|---|---|---|
| 28 | 28 |
* @require PHP 5.2.11 |
| 29 | 29 |
* @license http://www.gnu.org/licenses/gpl.html |
| 30 | 30 |
* @link http://project.websitebaker2.org/browser/branches/2.8.x/wb/pages |
| 31 |
* @changeset 2009/11/28 Ticket #886 fix validation email, check tld between 2-4 letters |
|
| 31 | 32 |
* @changeset 2009/11/28 fix deprecated eregi |
| 32 | 33 |
|
| 33 | 34 |
*/ |
| ... | ... | |
| 282 | 283 |
if(!isset($_POST['admin_email']) OR $_POST['admin_email'] == '') {
|
| 283 | 284 |
set_error('Please enter an email for the Administrator account','admin_email');
|
| 284 | 285 |
} else {
|
| 285 |
if(preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i', $_POST['admin_email'])) {
|
|
| 286 |
if(preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', $_POST['admin_email'])) {
|
|
| 286 | 287 |
$admin_email = $_POST['admin_email']; |
| 287 | 288 |
} else {
|
| 288 | 289 |
set_error('Please enter a valid email address for the Administrator account','admin_email');
|
Also available in: Unified diff
Ticket #886 fix validation email, check tld between 2-4 letters