[Fusionforge-commits] r7732 - branches/Branch_4_8/gforge/www/docman

Guillaume Smet gsmet at libremir.placard.fr.eu.org
Sun Jun 7 00:18:44 CEST 2009


Author: gsmet
Date: 2009-06-07 00:18:44 +0200 (Sun, 07 Jun 2009)
New Revision: 7732

Modified:
   branches/Branch_4_8/gforge/www/docman/index.php
Log:
fixed the Document Manager to allow filenames containing quotes
patch from Laurent Almeras (Open Wide)

Modified: branches/Branch_4_8/gforge/www/docman/index.php
===================================================================
--- branches/Branch_4_8/gforge/www/docman/index.php	2009-06-06 22:14:51 UTC (rev 7731)
+++ branches/Branch_4_8/gforge/www/docman/index.php	2009-06-06 22:18:44 UTC (rev 7732)
@@ -34,8 +34,8 @@
 			docman_recursive_display($dg->getID());
 			if (isset($nested_docs[$dg->getID()]) && is_array($nested_docs[$dg->getID()])) {
 				foreach ($nested_docs[$dg->getID()] as $d) {
-					$docurl=util_make_url ('/docman/view.php/'.$group_id.'/'.$d->getID().'/'.$d->getFileName());
-					$docname=addslashes($d->getName())." (".$d->getFileName().")";
+					$docurl=util_make_url ('/docman/view.php/'.$group_id.'/'.$d->getID().'/'.urlencode($d->getFileName()));
+					$docname=addslashes($d->getName())." (".addslashes($d->getFileName()).")";
 					$docdesc=addslashes($d->getDescription());
 					echo ",['','".$docname."','".$docurl."','','".$docdesc."' ]";
 				}




More information about the Fusionforge-commits mailing list