noosfero | raw-html-article: escape body before rendering on edit (#557)

Larissa Reis gitlab at gitlab.com
Thu May 28 11:09:57 BRT 2015


New comment for Merge Request 557

https://gitlab.com/noosfero/noosfero/merge_requests/557#note_1296424


Larissa Reis

CGI::escapeHTML will crash if body is nil. I would suggest using `@article.body || ''`

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150528/af583b50/attachment.html>


More information about the Noosfero-dev mailing list