diff options
author | Andreas Bille <abi@openoffice.org> | 2002-10-25 11:09:13 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2002-10-25 11:09:13 +0000 |
commit | d9b7725db42750d064cde8859e427a5d62685cf9 (patch) | |
tree | 3defb8c8ec92e9af247676ce7bd28da38252faca /ucb | |
parent | 2f8a168b738f0602c223ee7c85e4f0d59ccd0149 (diff) |
#103030# type - field
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.cxx | 13 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.hxx | 5 |
2 files changed, 14 insertions, 4 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index 23b9c883b66b..6ee8607d758c 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ftpurl.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: abi $ $Date: 2002-10-24 16:43:05 $ + * last change: $Author: abi $ $Date: 2002-10-25 12:09:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -272,6 +272,13 @@ void FTPURL::parse(const rtl::OUString& url) m_aUsername, aPassword, aAccount); + + // now check for something like ";type=i" at end of url + if(m_aPathSegmentVec.size() && + (l = m_aPathSegmentVec.back().indexOf(sal_Unicode(';'))) != -1) { + m_aType = m_aPathSegmentVec.back().copy(l); + m_aPathSegmentVec.back() = m_aPathSegmentVec.back().copy(0,l); + } } @@ -319,6 +326,7 @@ rtl::OUString FTPURL::ident(bool withslash,bool internal) const if(bff.getLength() && bff[bff.getLength()-1] != sal_Unicode('/')) bff.append(sal_Unicode('/')); + bff.append(m_aType); return bff.makeStringAndClear(); } @@ -370,6 +378,7 @@ rtl::OUString FTPURL::parent(bool internal) const else if(last.equalsAscii("..")) bff.append(last).appendAscii("/.."); + bff.append(m_aType); return bff.makeStringAndClear(); } diff --git a/ucb/source/ucp/ftp/ftpurl.hxx b/ucb/source/ucp/ftp/ftpurl.hxx index db4daea8a853..93270d2e83eb 100644 --- a/ucb/source/ucp/ftp/ftpurl.hxx +++ b/ucb/source/ucp/ftp/ftpurl.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ftpurl.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: abi $ $Date: 2002-10-24 16:43:05 $ + * last change: $Author: abi $ $Date: 2002-10-25 12:09:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -187,6 +187,7 @@ namespace ftp { bool m_bShowPassword; mutable rtl::OUString m_aHost; mutable rtl::OUString m_aPort; + mutable rtl::OUString m_aType; /** Contains the decoded pathsegments of the url. */ |