Page MenuHomePhabricator

Don't escape quotation marks when printing the monospaced CSS rule
ClosedPublic

Authored by epriestley on Apr 22 2015, 4:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 11:03 PM
Unknown Object (File)
Fri, Apr 12, 2:45 AM
Unknown Object (File)
Mon, Apr 1, 12:36 PM
Unknown Object (File)
Mar 10 2024, 5:08 PM
Unknown Object (File)
Feb 13 2024, 11:14 AM
Unknown Object (File)
Feb 9 2024, 3:22 PM
Unknown Object (File)
Jan 28 2024, 9:49 AM
Unknown Object (File)
Jan 9 2024, 5:11 AM
Subscribers

Details

Summary

Fixes T7888. This is currently safe, but double quotes are incorrectly escaped.

To keep them unescaped, we have to punch through PhutilSafeHTML a bit. Since the allowable characters are strictly filtered this is still safe in practice, just not as theoretically-safe.

Test Plan

Set font to 32px "impact" (with quotes), saw impact font.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't escape quotation marks when printing the monospaced CSS rule.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
chad added a reviewer: chad.
This revision is now accepted and ready to land.Apr 22 2015, 4:28 PM
This revision was automatically updated to reflect the committed changes.