Jump to content

[SOLVED] Invalid Address because of special characters while Add Address


Recommended Posts

nothing i simply removed @ symobol from validate characters..

 

edited function : 

public static function isAddress($address)
	{
		return empty($address) || preg_match('/^[^!<>?=+{}_$%]*$/u', $address);
	}

or if you want accept all characters for address field, just change as follow :

public static function isAddress($address)
	{
		return !preg_match('/[<>{}]/i', $address);
	}

thanx

Edited by mani313 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...