myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [3042] bug fix at directories browsing


From: Alexandru IANCU
Subject: [myserver-commit] [3042] bug fix at directories browsing
Date: Mon, 30 Mar 2009 21:40:53 +0000

Revision: 3042
          http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=3042
Author:   andu
Date:     2009-03-30 21:40:53 +0000 (Mon, 30 Mar 2009)
Log Message:
-----------
bug fix at directories browsing

Modified Paths:
--------------
    trunk/myserver/src/protocol/ftp/ftp.cpp

Modified: trunk/myserver/src/protocol/ftp/ftp.cpp
===================================================================
--- trunk/myserver/src/protocol/ftp/ftp.cpp     2009-03-30 19:42:09 UTC (rev 
3041)
+++ trunk/myserver/src/protocol/ftp/ftp.cpp     2009-03-30 21:40:53 UTC (rev 
3042)
@@ -1496,7 +1496,9 @@
     return false;
   }
   ///////////////////////////////////////
-  
+  if ( FilesUtility::isDirectory(sOutPath) && 
+       (sOutPath[sOutPath.length()] != '/' || sOutPath[sOutPath.length()] != 
'\\') )
+    sOutPath.append("/");
   return true;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]