HomePhabricator

Strip U+0000 in wikitext
Audited3e32d2121036Unpublished

Authored by cscott on Feb 27 2017, 9:27 PM.

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.

Description

Strip U+0000 in wikitext

U+0000 is not allowed in HTML5, there's no reason to allow it in wikitext.

It simplifies our code if we can just strip them at the start. Strip in
PST as well so they don't sneak into our database either.

Tweaked the EXT_LINK URLs to account for the fact that invalid characters
get transformed into U+FFFD when using Preprocessor_DOM. See 73649741ed1e
(r65967) for context on that change.

Bug: T159174
Change-Id: I3f67e92b61aacc87a40c3662085c84d1dac08bfb

Details

Auditors
mmodell
Committed
LegoktmMar 6 2017, 10:23 PM
Parents
rMW22c59e66e751: Merge "Add mw-body-content to indicators"
Branches
Unknown
Tags
Unknown
References
refs/changes/25/340225/4
ChangeId
I3f67e92b61aacc87a40c3662085c84d1dac08bfb

Event Timeline

mmodell raised a concern with this commit.Mar 8 2017, 9:34 PM
mmodell added a subscriber: mmodell.
This commit now has outstanding concerns.Mar 8 2017, 9:34 PM
mmodell accepted this commit.May 12 2017, 1:02 AM
All concerns with this commit have now been addressed.May 12 2017, 1:02 AM