Author: toad
Date: 2007-09-14 16:34:06 +0000 (Fri, 14 Sep 2007)
New Revision: 15170
Modified:
trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
Fix DDA!
Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2007-09-14 16:30:58 UTC (rev 15169)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2007-09-14 16:34:06 UTC (rev 15170)
@@ -317,7 +317,7 @@
* @return boolean : allowed or not
*/
protected boolean allowDDAFrom(File filename, boolean writeRequest) {
- String parentDirectory =
FileUtil.getCanonicalFile(filename).getPath();
+ String parentDirectory =
FileUtil.getCanonicalFile(filename).getParent();
DirectoryAccess da = null;
synchronized (checkedDirectories) {