E-Mail field allow leading and trailling's spaces

E-Mail field allow leading and trailing’s spaces in the email adresses, this is cause the _ap_retrieve_pswd to crash if the spaces are not trim before being used

Could try this … strip everything but numbers, letters and @ character
$str = preg_replace(’/[^a-zA-Z0-9@. ]+/’, ‘’, {fieldname});

Yes, thank you

I just wanted to notify Scriptcase team that they should correct the auto validation process of an e-mail address