zberentey/liferay-portal — pull request #133 by vilmospapp (2012-08-17 11:44:52+00:00)
Title: [TECHNICAL SUPPORT] LPS-29334 Fixing BBCode parse problem with trailing line endings

Hi Zsolt,

If a custom porlet uses e.g: CKEditor or anything else to get the user input for MBMessage and they don't trim the trailing line endings the poratal throws exceptions, though the saving of the message is successful, but the log has errors.

The fix I made is to trim the trailing whitespaces with StringUtil.trimTrailing() in the parse method of BBCodeParser before processing the text.

Regards,
Vilmos