Project

General

Profile

« Previous | Next » 

Revision 343

Added by stefan over 18 years ago

Ticket #162 - info top level domain not accepted in installation.

View differences:

save.php
235 235
if(!isset($_POST['admin_email']) OR $_POST['admin_email'] == '') {
236 236
	set_error('Please enter an email for the Administrator account');
237 237
} else {
238
	if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['admin_email'])) {
238
	if(eregi("^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$", $_POST['admin_email'])) {
239 239
		$admin_email = $_POST['admin_email'];
240 240
	} else {
241 241
		set_error('Please enter a valid email address for the Administrator account');

Also available in: Unified diff