Page MenuHomePhabricator

Filter "javascript:" URIs more aggressively
ClosedPublic

Authored by epriestley on Mar 16 2014, 2:25 PM.
Tags
None
Referenced Files
F13224010: D8548.id20281.diff
Sun, May 19, 5:53 AM
F13216800: D8548.id20283.diff
Sat, May 18, 2:18 AM
F13179112: D8548.diff
Wed, May 8, 8:57 PM
Unknown Object (File)
Tue, May 7, 5:26 PM
Unknown Object (File)
Sat, May 4, 6:25 PM
Unknown Object (File)
Wed, Apr 24, 10:11 PM
Unknown Object (File)
Apr 11 2024, 8:10 AM
Unknown Object (File)
Apr 6 2024, 4:35 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
Branch
jsfilter1
Lint
Lint Passed
Unit
Tests Passed

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).