Kaydet (Commit) 82090ca5 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

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.
üst 55326862
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: ucbcmds.cxx,v $ * $RCSfile: ucbcmds.cxx,v $
* $Revision: 1.19 $ * $Revision: 1.20 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -426,6 +426,14 @@ static rtl::OUString createDesiredName( ...@@ -426,6 +426,14 @@ static rtl::OUString createDesiredName(
{ {
aName = rSourceURL; 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 ); return rtl::OUString( aName );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment