Page MenuHomePhabricator

Previewing on Special:Undelete displays first line incorrectly if list item
Closed, ResolvedPublic

Description

Author: rockmfr

Description:
If the first line of a deleted revision uses list wiki markup (i.e., "*blahblahblah"), previewing that revision will display an asterisk followed by whatever else is on that line, rather than displaying it as a list.


Version: unspecified
Severity: trivial
URL: http://en.wikipedia.org/w/index.php?title=Special:Undelete&target=User%3ARockMFR%2Fundeletelistbug&timestamp=20071215031757

Details

Reference
bz12311

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:55 PM
bzimport set Reference to bz12311.
bzimport added a subscriber: Unknown Object (MLST).

rockmfr wrote:

patch to SpecialUndelete.php

Looks like the bug was introduced in r19095; addWikiTextTitleTidy uses $linestart as the third parameter, as opposed to addPrimaryWikiText which uses $cache. Simple!

Attached:

Thanks for the patch! Applied on r36114