Page MenuHomePhabricator

Trim comments before saving
Closed, ResolvedPublic

Description

See URL. Comments aren't getting trimmed after posting, so whitespace-only comments are being saved.

Should fix this :)


Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72186

Details

Reference
bz25101

Event Timeline

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

r72626

Trim all trailing/leading whitespace and then check it's length

r72626 caused a regression, noted in bug 26619.