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

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sun Dec 12 21:51:39 CET 2010


Author: nerville
Date: 2010-12-12 21:51:39 +0100 (Sun, 12 Dec 2010)
New Revision: 11781

Modified:
   trunk/src/common/docman/include/webdav.php
Log:
fix utf-8 encoding

Modified: trunk/src/common/docman/include/webdav.php
===================================================================
--- trunk/src/common/docman/include/webdav.php	2010-12-12 20:42:44 UTC (rev 11780)
+++ trunk/src/common/docman/include/webdav.php	2010-12-12 20:51:39 UTC (rev 11781)
@@ -39,7 +39,7 @@
 	 * @return	bool	success
 	 */
 	function checkAuth($group_id, $user, $pass) {
-		$g =& group_get_object($group_id);
+		$g = group_get_object($group_id);
 		if (!$g || !is_object($g))
 			return false;
 
@@ -214,6 +214,7 @@
 		$analysed_path = $this->analyse($subpath, $group_id);
 
 		if ($analysed_path['isdir']) {
+			echo '<?xml version="1.0" encoding="utf-8"?>';
 			echo "<html><head><title>Index of ".htmlspecialchars($subpath)."</title></head>\n";
 			echo "<body>\n";
 			echo "<h1>Index of ".htmlspecialchars($subpath)."</h1>\n";




More information about the Fusionforge-commits mailing list