Author: Jogy
Date: 2006-08-10 21:39:56 +0000 (Thu, 10 Aug 2006)
New Revision: 10035

Modified:
   trunk/freenet/src/freenet/clients/http/LocalFileInsertToadlet.java
Log:
Fix display of drive links: here it showed "/","/","/" for my drives, now it 
displays "A:/","C:/","D:/". -> Better letters than no names at all. BTW - I 
like the file dialog very much :)

Modified: trunk/freenet/src/freenet/clients/http/LocalFileInsertToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/LocalFileInsertToadlet.java  
2006-08-10 19:03:19 UTC (rev 10034)
+++ trunk/freenet/src/freenet/clients/http/LocalFileInsertToadlet.java  
2006-08-10 21:39:56 UTC (rev 10035)
@@ -87,7 +87,7 @@
                                HTMLNode rootRow = listingTable.addChild("tr");
                                rootRow.addChild("td");
                                HTMLNode rootLinkCellNode = 
rootRow.addChild("td");
-                               rootLinkCellNode.addChild("a", "href", "?path=" 
+ URLEncoder.encode(currentRoot.getCanonicalPath()), currentRoot.getName() + 
File.separator);
+                               rootLinkCellNode.addChild("a", "href", "?path=" 
+ URLEncoder.encode(currentRoot.getCanonicalPath()), 
currentRoot.getCanonicalPath());
                                rootRow.addChild("td");
                        }
                        /* add back link */


Reply via email to