ucb/source/ucp/ftp/ftpurl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a23adf1a191c8968e673602df7db78c0b3015570 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Jun 7 14:03:13 2017 +0200 Make use of OUString::startsWithIgnoreAsciiCase rest parameter Change-Id: Id5d1df581307ea6eb4e3e634d14ed3dbbe914544 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits