diff options
author | Kurt Zenker <kz@openoffice.org> | 2009-12-03 18:43:21 +0100 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2009-12-03 18:43:21 +0100 |
commit | fdcc51ef2b9cf7c117757c64fb3a9af6e0bc1c90 (patch) | |
tree | 9f4516893c4aca606ab3cfec03cf492813ed7958 /svtools | |
parent | CWS-TOOLING: integrate CWS validityref (diff) | |
parent | CWS-TOOLING: integrate CWS fwk125 (diff) | |
download | core-fdcc51ef2b9cf7c117757c64fb3a9af6e0bc1c90.tar.gz core-fdcc51ef2b9cf7c117757c64fb3a9af6e0bc1c90.zip |
CWS-TOOLING: integrate CWS fwk125_DEV300
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/passwordcontainer/passwordcontainer.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/svtools/source/passwordcontainer/passwordcontainer.cxx b/svtools/source/passwordcontainer/passwordcontainer.cxx index cebde0705f12..2349a9f9a3da 100644 --- a/svtools/source/passwordcontainer/passwordcontainer.cxx +++ b/svtools/source/passwordcontainer/passwordcontainer.cxx @@ -152,17 +152,10 @@ static vector< ::rtl::OUString > getInfoFromInd( ::rtl::OUString aInd ) static sal_Bool shorterUrl( ::rtl::OUString& aURL ) { sal_Int32 aInd = aURL.lastIndexOf( sal_Unicode( '/' ) ); - - if( aInd > 0 ) + if( aInd > 0 && aURL.indexOf( ::rtl::OUString::createFromAscii( "://" ) ) != aInd-2 ) { - sal_Int32 aPrevInd = aURL.lastIndexOf( sal_Unicode( '/' ), aInd ); - if ( aURL.indexOf( ::rtl::OUString::createFromAscii( "://" ) ) - != aPrevInd - 2 || - aInd != aURL.getLength() - 1 ) - { - aURL = aURL.copy( 0, aInd ); - return sal_True; - } + aURL = aURL.copy( 0, aInd ); + return sal_True; } return sal_False; |