summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-06-04 08:43:27 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-06-04 08:43:27 +0000
commite66702cc71cd068159fae86b90ce956ffd7c1a8d (patch)
tree8e80e61661202228f877f1d7ab36c6e67d1fd6b9 /ucb
parente39dd17c5195ca13d7cc7e2de9d008946fb1a879 (diff)
INTEGRATION: CWS tkr10 (1.18.8); FILE MERGED
2008/05/19 09:26:39 tkr 1.18.8.2: RESYNC: (1.18-1.19); FILE MERGED 2008/04/07 13:58:07 kso 1.18.8.1: #i83870# - Respect query and fragment part in source URLs.
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/ucbcmds.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx
index 42c392265b..0db14ca73f 100644
--- a/ucb/source/core/ucbcmds.cxx
+++ b/ucb/source/core/ucbcmds.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ucbcmds.cxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
* This file is part of OpenOffice.org.
*
@@ -426,6 +426,14 @@ static rtl::OUString createDesiredName(
{
aName = rSourceURL;
}
+
+ // query, fragment present?
+ sal_Int32 nPos = aName.indexOf( '?' );
+ if ( nPos == -1 )
+ nPos = aName.indexOf( '#' );
+
+ if ( nPos != -1 )
+ aName = aName.copy( 0, nPos );
}
return rtl::OUString( aName );
}