myserver-commit
[Top][All Lists]
Advanced

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

[myserver-commit] [3043] bug fix at directory browsing


From: Alexandru IANCU
Subject: [myserver-commit] [3043] bug fix at directory browsing
Date: Mon, 30 Mar 2009 21:44:55 +0000

Revision: 3043
          http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=3043
Author:   andu
Date:     2009-03-30 21:44:54 +0000 (Mon, 30 Mar 2009)
Log Message:
-----------
bug fix at directory 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 21:40:53 UTC (rev 
3042)
+++ trunk/myserver/src/protocol/ftp/ftp.cpp     2009-03-30 21:44:54 UTC (rev 
3043)
@@ -1497,7 +1497,7 @@
   }
   ///////////////////////////////////////
   if ( FilesUtility::isDirectory(sOutPath) && 
-       (sOutPath[sOutPath.length()] != '/' || sOutPath[sOutPath.length()] != 
'\\') )
+       (sOutPath[sOutPath.length() - 1] != '/' || sOutPath[sOutPath.length() - 
1] != '\\') )
     sOutPath.append("/");
   return true;
 }





reply via email to

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