Revision 1197
Added by Dietmar almost 15 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 | 14 |
28-Nov-2009 Dietmar Woellbrink (Luisehahne) |
15 |
! Ticket #886 fix validation email, check tld between 2-4 letters |
|
16 |
28-Nov-2009 Dietmar Woellbrink (Luisehahne) |
|
15 | 17 |
! Ticket #874 add slovak lang in install |
16 | 18 |
and validate output |
17 | 19 |
28-Nov-2009 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/install/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