Homec4science

Fix overescaping in Paste

Authored by epriestley <git@epriestley.com> on Feb 16 2013, 01:38.

Description

Fix overescaping in Paste

Summary:
Two issues:

  • When we read the content out of cache, it has lost its "safe html" flag, since the cache is raw-string oriented. Restore it.
  • explode() isn't safe-html-safe. Use phutil_split_lines() instead, which is.

Test Plan: Looked at /paste/

Reviewers: codeblock, chad

Reviewed By: codeblock

CC: aran

Differential Revision: https://secure.phabricator.com/D4980

Details

Committed
epriestley <git@epriestley.com>Feb 16 2013, 01:38
Pushed
aubortJan 31 2017, 17:16
Parents
rPH6c1043cf58c4: Populating Channel Id's
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH02f7ece868d8: Fix overescaping in Paste (authored by epriestley <git@epriestley.com>).Feb 16 2013, 01:38