diff options
Diffstat (limited to 'ucb/source/ucp/webdav')
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index 92cd797c4838..3eb5e3cf51ec 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -351,9 +351,8 @@ namespace { sal_Int32 nContStart = _rRawString.indexOf( sPartId ); if ( nContStart != -1 ) { - nContStart = nContStart + sPartId.getLength(); - sal_Int32 nContEnd - = _rRawString.indexOf( sal_Unicode( ',' ), nContStart ); + nContStart += sPartId.getLength(); + sal_Int32 nContEnd = _rRawString.indexOf( sal_Unicode( ',' ), nContStart ); sPart = _rRawString.copy( nContStart, nContEnd - nContStart ); } return sPart; @@ -1547,7 +1546,7 @@ SerfSession::isDomainMatch( OUString certHostName ) if (hostName.equalsIgnoreAsciiCase( certHostName ) ) return sal_True; - if ( 0 == certHostName.indexOf( '*' ) && + if ( certHostName.startsWith( '*' ) && hostName.getLength() >= certHostName.getLength() ) { OUString cmpStr = certHostName.copy( 1 ); |