[Fusionforge-commits] r11024 - trunk/src/common/docman/include

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sat Oct 16 00:20:36 CEST 2010


Author: nerville
Date: 2010-10-16 00:20:36 +0200 (Sat, 16 Oct 2010)
New Revision: 11024

Modified:
   trunk/src/common/docman/include/webdav.php
Log:
fix missing slash

Modified: trunk/src/common/docman/include/webdav.php
===================================================================
--- trunk/src/common/docman/include/webdav.php	2010-10-15 22:18:51 UTC (rev 11023)
+++ trunk/src/common/docman/include/webdav.php	2010-10-15 22:20:36 UTC (rev 11024)
@@ -82,6 +82,9 @@
 				exit_error(_('webdav db error:').' '.db_error(),'docman');
 			}
 			while ($arr = db_fetch_array($res)) {
+				if ( '/' != substr($subpath,-1)) {
+					$subpath .= '/';
+				}
 				echo '<li><a href="'.util_make_url('/docman/view.php/'.$group_id.'/webdav'.$subpath.$arr['groupname']).'">'.$arr['groupname'].'</a></li>';
 			}
 		}




More information about the Fusionforge-commits mailing list