From 6269de1f588af73e5692779211130358d0efb9c1 Mon Sep 17 00:00:00 2001 From: Roland Mas Date: Thu, 18 Feb 2010 15:35:46 +0000 Subject: [PATCH] Fix display of docs when some doc groups contain apostrophes in their name --- gforge/www/docman/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gforge/www/docman/index.php b/gforge/www/docman/index.php index 8eabc3a9da..fc6d00c1bd 100644 --- a/gforge/www/docman/index.php +++ b/gforge/www/docman/index.php @@ -30,7 +30,7 @@ function docman_recursive_display($docgroup) { if (is_array(@$nested_groups[$docgroup])) { foreach ($nested_groups[$docgroup] as $dg) { echo " - ['".''."', '".$dg->getName()."', '#', '', '',"; + ['".''."', '".addslashes($dg->getName())."', '#', '', '',"; docman_recursive_display($dg->getID()); if (isset($nested_docs[$dg->getID()]) && is_array($nested_docs[$dg->getID()])) { foreach ($nested_docs[$dg->getID()] as $d) { -- 2.30.2