Page MenuHomePhabricator

Filter "javascript:" URIs more aggressively
ClosedPublic

Authored by epriestley on Mar 16 2014, 2:25 PM.
Tags
None
Referenced Files
F19922523: D8548.id20283.diff
Mon, Apr 6, 6:53 PM
F19911631: D8548.diff
Thu, Apr 2, 1:51 PM
F19840274: D8548.id.diff
Mar 11 2026, 7:01 PM
F19813662: D8548.id20283.diff
Mar 4 2026, 10:25 AM
F19813369: D8548.diff
Mar 4 2026, 8:52 AM
F19811367: D8548.id20283.diff
Mar 4 2026, 12:33 AM
F19684941: D8548.id20281.diff
Feb 9 2026, 6:54 AM
F19622957: D8548.id20281.diff
Feb 4 2026, 3:04 PM
Subscribers

Details

Summary

Some browsers interpret javascript\n: as a Javascript URI. Be significantly more aggressive in normalizing URIs when looking for javascript: hrefs.

Test Plan

Added and executed unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Filter "javascript:" URIs more aggressively.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
  • Add a test case for not normalizing capital letters away.
  • Add a test case for another true negative.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 17 2014, 6:12 PM
epriestley updated this revision to Diff 20293.

Closed by commit rPHU9678247c9f4c (authored by @epriestley).