From 77f60cebb48039c288ff9975a6ef4a5a88a01a65 Mon Sep 17 00:00:00 2001 From: Gavin Cornwell Date: Wed, 25 Feb 2009 13:17:48 +0000 Subject: [PATCH] Merged V3.1 to HEAD 13352: Fix for ETHREEOH-1216: Line breaks in forums posts from earlier earlier versions don't work - Added
to list of safe tags so that old forum posts containing it render properly - Edit post dialog updated to replace
tags as well as
when editing git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/web/bean/forums/EditPostDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/java/org/alfresco/web/bean/forums/EditPostDialog.java b/source/java/org/alfresco/web/bean/forums/EditPostDialog.java index f78156e4f8..e02d32bee9 100644 --- a/source/java/org/alfresco/web/bean/forums/EditPostDialog.java +++ b/source/java/org/alfresco/web/bean/forums/EditPostDialog.java @@ -65,6 +65,9 @@ public class EditPostDialog extends CreatePostDialog String htmlContent = reader.getContentString(); if (htmlContent != null) { + // ETHREEOH-1216: replace both forms of 'br' as older posts have the
version + // which doesn't work in all browsers supported by Alfresco Explorer + htmlContent = StringUtils.replace(htmlContent, "
", "\r\n"); this.content = StringUtils.replace(htmlContent, "
", "\r\n"); } }