diff options
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index 89a44774799e..90531769bc43 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -145,9 +145,8 @@ void FTPURL::parse(const OUString& url) { OUString aPassword, urlRest; - if(url.getLength() < 6 || !url.startsWithIgnoreAsciiCase("ftp://")) + if(url.getLength() < 6 || !url.startsWithIgnoreAsciiCase("ftp://", &urlRest)) throw malformed_exception(); - urlRest = url.copy(6); // determine "username:password@host:port" OUString aExpr; |