mani313 Posted September 6, 2013 Share Posted September 6, 2013 hi there, i want to add @ (special char) in my address. usually our condominiums are mentioned with '@' preceeding words like '@temlet house '. but ps validation does not accept this char. how do i broke off this ? thanx in adv. Link to comment Share on other sites More sharing options...
mani313 Posted September 6, 2013 Author Share Posted September 6, 2013 oh thanks for visit this..its fixed i just edited isAddress() function in 'classes\Validate.php' Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 I marked it as solved. Can you perhaps let us know which modifications you applied? It might be useful to other members Link to comment Share on other sites More sharing options...
mani313 Posted September 6, 2013 Author Share Posted September 6, 2013 (edited) 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 September 6, 2013 by mani313 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts