Page MenuHomePhabricator

Added `-` to the whitelist for CSS rules
ClosedPublic

Authored by jcox on Sep 8 2016, 8:25 PM.
Tags
None
Referenced Files
F14031925: D16519.diff
Sat, Nov 9, 12:17 PM
F14017187: D16519.id39756.diff
Mon, Nov 4, 2:30 PM
F13989633: D16519.id.diff
Mon, Oct 21, 9:53 PM
F13981657: D16519.id39757.diff
Oct 19 2024, 6:13 PM
F13965317: D16519.diff
Oct 16 2024, 1:16 AM
Unknown Object (File)
Oct 8 2024, 5:40 AM
Unknown Object (File)
Oct 1 2024, 3:15 PM
Unknown Object (File)
Sep 25 2024, 12:03 AM

Details

Summary

Fixes T11567. This way people can use things like sans-serif and -webkit-small-control for their "monospaced" font

Test Plan

I added the hyphen to the regex then was able to set my Monospaced Font to be anything with a hyphen in it.

I also tried to break it pretty extensively, but couldn't find anything that would let me write malicious CSS or JS.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jcox retitled this revision from to Added `-` to the whitelist for CSS rules.
jcox updated this object.
jcox edited the test plan for this revision. (Show Details)
jcox edited edge metadata.
This revision is now accepted and ready to land.Sep 8 2016, 8:26 PM
This revision was automatically updated to reflect the committed changes.