Tag Archives: iddd4170f98f75076a4a98f3bf2478dbf0


Sanitize string from bad protocols.This function removes all non-allowed protocols from the beginning of $string. It ignores whitespace and the case of the letters, and it does understand HTML entities. It does its work in a while loop, so it won’t be fooled by a string like “javascript:javascript:alert(57)”.


Continue reading