Tighten up url validation and correct typo