Commit 57f57eda357e3b1a4738c3ccb6352ad4cee6e71f
1 parent
b6c9c97b
(#2994) removed urldecoding and split on nl rather than <br>
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2704 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
| @@ -149,8 +149,7 @@ function getCommentBody($oComment, $iDocumentID, $oUser) { | @@ -149,8 +149,7 @@ function getCommentBody($oComment, $iDocumentID, $oUser) { | ||
| 149 | 149 | ||
| 150 | $sToRender .= renderHeading($sHeading); | 150 | $sToRender .= renderHeading($sHeading); |
| 151 | $sToRender .= renderDocumentPath($iDocumentID); | 151 | $sToRender .= renderDocumentPath($iDocumentID); |
| 152 | - $sBody = urldecode(str_replace("%0D%0A","<br>",str_replace("+", " ",$oComment->getBody()))); | ||
| 153 | - $aBody = explode("<br>",$sBody); | 152 | + $aBody = explode("\n",$oComment->getBody()); |
| 154 | $sBody = ""; | 153 | $sBody = ""; |
| 155 | $numChars = 160; // number of chars in a line | 154 | $numChars = 160; // number of chars in a line |
| 156 | 155 |