diff options
Diffstat (limited to 'ucb/source/ucp/file/shell.cxx')
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index a9cd7e44ad81..538e013bf1ac 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -1967,9 +1967,9 @@ sal_Bool SAL_CALL shell::getUnqFromUrl( const OUString& Url,OUString& Unq ) Unq = Url; sal_Int32 l = Unq.getLength()-1; - if( ! err && Unq.getStr()[ l ] == '/' && - Unq.indexOf( '/', RTL_CONSTASCII_LENGTH("//") ) < l ) - Unq = Unq.copy(0, Unq.getLength() - 1); + if( ! err && Unq.endsWith("/") && + Unq.indexOf( '/', RTL_CONSTASCII_LENGTH("//") ) != -1 ) + Unq = Unq.copy(0, l); return err; } |