HomePhabricator

(bug 20310) Invalid value of edit_diff

Authored by Szymon Świerkosz <beau@adres.pl>.

Description

(bug 20310) Invalid value of edit_diff

This change makes EditFilterMerged handler replace all \r\n with \n.

Parser::preSaveTransform replaces \r\n with \n for all texts, so
there are no \r in the database. The hook EditFilterMerged is run
before the text is processed by Parser::preSaveTransform, so the
diff will be useless if the client sends content with \r\n as line
endings.

Change-Id: If81fe7cc5e3af51a6564f86597d3afaefc7ad4b7

Details

Committed
Szymon ŚwierkoszApr 29 2012, 9:03 AM
Parents
rEABF0c6faec654e2: Localisation updates from http://translatewiki.net.
Branches
Unknown
Tags
Unknown
References
refs/changes/90/6090/1
ChangeId
If81fe7cc5e3af51a6564f86597d3afaefc7ad4b7

Event Timeline

Szymon Świerkosz <beau@adres.pl> committed rEABF1ba92ac8707e: (bug 20310) Invalid value of edit_diff (authored by Szymon Świerkosz <beau@adres.pl>).Apr 29 2012, 9:03 AM