Fix XSS flaw in friend.php

To test this flaw enter the following for the friend's email. Then when it returns the error on the email address move the mouse over the email address field to activate.

sample%40email.tst" onmouseover=prompt(971889) bad="