diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-11 18:34:52 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-12 01:45:29 +0200 |
commit | 007864407b2aeb54ebd4c00eafae9f6e1adada39 (patch) | |
tree | e22f089bcea6d5a08eda972e9d3d9ad50c32c9fb | |
parent | 0db950ded89aa916fba40d27479a6722ec9a05c7 (diff) |
ucb: prevent out of bound access in OUString
Change-Id: I451bf13cbf39ec13152d083a6a6728cd043f9fbd
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index ef073e04ac6f..f7c98119b061 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -2047,7 +2047,7 @@ OUString NeonSession::makeAbsoluteURL( OUString const & rURL ) const try { // Is URL relative or already absolute? - if ( rURL[ 0 ] != '/' ) + if ( !rURL.isEmpty() && rURL[ 0 ] != '/' ) { // absolute. return OUString( rURL ); |