fdo#81304 don't parse file name as part of URL
... because the name is not URL-encoded at this point, so parsing it as a part of the URL will interpret special characters, e.g. #. Change-Id: I780baed1753e9674d835dc296d31c088b67d8ba7
This commit is contained in:
@@ -1279,7 +1279,8 @@ OUString ModelData_Impl::GetRecommendedName( const OUString& aSuggestedName, con
|
||||
uno::UNO_QUERY );
|
||||
if ( xTypeDetection.is() )
|
||||
{
|
||||
INetURLObject aObj( OUString( "file:///c:/" ) + aRecommendedName );
|
||||
INetURLObject aObj( OUString( "file:///c:/" ) );
|
||||
aObj.SetName( aRecommendedName );
|
||||
|
||||
uno::Sequence< beans::PropertyValue > aTypeNameProps;
|
||||
if ( ( xTypeDetection->getByName( aTypeName ) >>= aTypeNameProps ) && aTypeNameProps.getLength() )
|
||||
|
Reference in New Issue
Block a user