[Fusionforge-commits] FusionForge branch Branch_5_1 updated. 14d59db98730e755c80424e3ae4a79c14dd09e02

Alain Peyrat aljeux at fusionforge.org
Tue Oct 16 18:51:18 CEST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_1 has been updated
       via  14d59db98730e755c80424e3ae4a79c14dd09e02 (commit)
      from  310f612f39e6049d42ebdc9bf886314867443ff4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 14d59db98730e755c80424e3ae4a79c14dd09e02
Author: Alain Peyrat <aljeux at free.fr>
Date:   Tue Oct 16 18:48:59 2012 +0200

    Fix [#509] Bugtracker eats newlines in descrition and comment

diff --git a/src/www/tracker/include/ArtifactHtml.class.php b/src/www/tracker/include/ArtifactHtml.class.php
index aedcbb1..5ad8fc4 100644
--- a/src/www/tracker/include/ArtifactHtml.class.php
+++ b/src/www/tracker/include/ArtifactHtml.class.php
@@ -36,7 +36,7 @@ class ArtifactHtml extends Artifact {
 		$result = $this->getDetails();
 		$result = util_gen_cross_ref($result, $this->ArtifactType->Group->getID());
 		//$result = util_line_wrap( $result, 120,"\n");
-		$result = preg_replace('/\r|\n/', '<br />', $result);
+		$result = nl2br($result);
 
 		$title_arr = array();
 		if ($editable === true) {
@@ -84,7 +84,7 @@ class ArtifactHtml extends Artifact {
 				$text = db_result($result, $i, 'body');
 				$text = util_gen_cross_ref($text, $this->ArtifactType->Group->getID());
 				//$text = util_line_wrap( $text, 120,"\n");
-				$text = preg_replace('/\r|\n/', '<br />', $text);
+				$text = nl2br($text);
 				echo "<br /><br />".$text.'</td></tr>';
 			}
 

-----------------------------------------------------------------------

Summary of changes:
 src/www/tracker/include/ArtifactHtml.class.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list