Project

General

Profile

« Previous | Next » 

Revision 1216

Added by LordDarkman almost 15 years ago

View differences:

branches/2.8.x/wb/framework/class.wb.php
260 260

  
261 261
	// Validate supplied email address
262 262
	function validate_email($email) {
263
		if(eregi("^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$", $email)) {
264
			return true;
263
		if(preg_match('/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/', $email)) {
264
		return true;
265 265
		} else {
266 266
			return false;
267 267
		}

Also available in: Unified diff