diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-10-16 07:00:24 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-10-16 07:00:24 +0000 |
commit | 811f0dd5192132292ed851f1a4fc4eb672ab3bb1 (patch) | |
tree | e3cee9f2692e508fd58c18f516385a184ddbfeb2 /tools | |
parent | f946d97b9d98888922a957bf96ff32d439ca9b43 (diff) |
#92158# ConcatData: correctly respect the m_bHierarchical flag of the scheme when creating the absolute path
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 7f3926922030..dae99fad0dbd 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: urlobj.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: sb $ $Date: 2001-10-15 09:12:02 $ + * last change: $Author: fs $ $Date: 2001-10-16 08:00:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3753,9 +3753,13 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme, } } UniString aSynPath; - if (getSchemeInfo().m_bHierarchical - && rThePath.Len() == 0 || rThePath.GetChar(0) != '/') + if ( getSchemeInfo().m_bHierarchical + && ( ( rThePath.Len() == 0 ) + || ( rThePath.GetChar(0) != '/' ) + ) + ) aSynPath = '/'; + aSynPath += rThePath; m_aPath.set(m_aAbsURIRef, encodeText(aSynPath, false, |