diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-10-25 12:47:41 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-10-25 12:47:41 +0000 |
commit | d479a2d67f1242a557b8d8288c7cf544afdd18f4 (patch) | |
tree | 32daea4a85270c5a41c7a1e5d2f701178a9d10c5 /ucb/source/ucp/webdav/ContentProperties.cxx | |
parent | 8dea1b9e0e01ce78a5c761559608b196616237d0 (diff) |
#92937# - Improved redirection support.
Diffstat (limited to 'ucb/source/ucp/webdav/ContentProperties.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index b1aed6b778e5..5b63d75fcce1 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ContentProperties.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kso $ $Date: 2001-09-06 10:37:56 $ + * last change: $Author: kso $ $Date: 2001-10-25 13:47:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -98,7 +98,8 @@ using namespace webdav_ucp; //========================================================================= ContentProperties::ContentProperties( const DAVResource& rResource ) -: pIsDocument( 0 ), +: bTrailingSlash( sal_False ), + pIsDocument( 0 ), pIsFolder( 0 ), pSize( 0 ), pDateCreated( 0 ), @@ -223,12 +224,20 @@ ContentProperties::ContentProperties( const DAVResource& rResource ) } ++it; } + + if ( rResource.uri.getStr()[ rResource.uri.getLength() - 1 ] + == sal_Unicode( '/' ) ) + { +// if ( pIsFolder && *pIsFolder ) + bTrailingSlash = sal_True; + } } //========================================================================= ContentProperties::ContentProperties( const rtl::OUString & rTitle, sal_Bool bFolder ) : aTitle( rTitle ), + bTrailingSlash( sal_False ), pIsDocument( new sal_Bool( !bFolder ) ), pIsFolder( new sal_Bool( bFolder ) ), pSize( 0 ), @@ -252,6 +261,7 @@ ContentProperties::ContentProperties( //========================================================================= ContentProperties::ContentProperties( const rtl::OUString & rTitle ) : aTitle( rTitle ), + bTrailingSlash( sal_False ), pIsDocument( 0 ), pIsFolder( 0 ), pSize( 0 ), |