Page MenuHomePhabricator

Added `-` to the whitelist for CSS rules
ClosedPublic

Authored by jcox on Sep 8 2016, 8:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 8:21 AM
Unknown Object (File)
Mon, Apr 8, 1:12 AM
Unknown Object (File)
Tue, Apr 2, 7:20 AM
Unknown Object (File)
Tue, Apr 2, 6:42 AM
Unknown Object (File)
Fri, Mar 29, 11:10 PM
Unknown Object (File)
Mar 5 2024, 1:20 PM
Unknown Object (File)
Feb 2 2024, 10:06 AM
Unknown Object (File)
Jan 28 2024, 10:05 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.