- fixed SF# 2932647: FTPClientSession::getWorkingDirectory() returns a bad result

This commit is contained in:
Guenter Obiltschnig
2010-01-15 08:47:14 +00:00
parent 75e81ca723
commit 9fbf4ee22b
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ Release 1.3.6p2 (2010-01-xx)
- updated iPhone build configuration (contributed by Martin York) - updated iPhone build configuration (contributed by Martin York)
- fixed SF# 1815124 (reopened): XML Compile failed on VS7.1 with - fixed SF# 1815124 (reopened): XML Compile failed on VS7.1 with
XML_UNICODE_WCHAR_T XML_UNICODE_WCHAR_T
- fixed SF# 2932647: FTPClientSession::getWorkingDirectory() returns a bad result
Release 1.3.6p1 (2009-12-21) Release 1.3.6p1 (2009-12-21)

View File

@@ -1,7 +1,7 @@
// //
// FTPClientSession.cpp // FTPClientSession.cpp
// //
// $Id: //poco/1.3/Net/src/FTPClientSession.cpp#3 $ // $Id: //poco/1.3/Net/src/FTPClientSession.cpp#4 $
// //
// Library: Net // Library: Net
// Package: FTP // Package: FTP
@@ -318,7 +318,7 @@ std::string FTPClientSession::extractPath(const std::string& response)
if (*it == '"') if (*it == '"')
{ {
++it; ++it;
if (it != end && *it != '"') break; if (it == end || (it != end && *it != '"')) break;
} }
path += *it++; path += *it++;
} }