S
Shabam
Is there a function that validates if a URL is valid or not? Basically I'm
trying to filter out bogus input, and things like cross site scripting
attacks.
Example:
<img src="javascript:alert(document.cookie)">
Doing it by regex seems way too complicated and there could be holes in the
logic if something is missed.
trying to filter out bogus input, and things like cross site scripting
attacks.
Example:
<img src="javascript:alert(document.cookie)">
Doing it by regex seems way too complicated and there could be holes in the
logic if something is missed.