Blame SOURCES/0053-fdo-81304-don-t-parse-file-name-as-part-of-URL.patch

f085be
From a958b590a34a1eaa888a36285f6aa364606383ad Mon Sep 17 00:00:00 2001
f085be
From: David Tardon <dtardon@redhat.com>
f085be
Date: Mon, 14 Jul 2014 15:07:52 +0200
f085be
Subject: [PATCH 053/137] fdo#81304 don't parse file name as part of URL
f085be
f085be
... because the name is not URL-encoded at this point, so parsing it as
f085be
a part of the URL will interpret special characters, e.g. #.
f085be
f085be
Change-Id: I780baed1753e9674d835dc296d31c088b67d8ba7
f085be
(cherry picked from commit f3d7734af45f30a87d6de76aa3de7593d541bdc8)
f085be
Reviewed-on: https://gerrit.libreoffice.org/10295
f085be
Reviewed-by: Eike Rathke <erack@redhat.com>
f085be
Tested-by: Eike Rathke <erack@redhat.com>
f085be
---
f085be
 sfx2/source/doc/guisaveas.cxx | 3 ++-
f085be
 1 file changed, 2 insertions(+), 1 deletion(-)
f085be
f085be
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
f085be
index 446d9d5..13105dc 100644
f085be
--- a/sfx2/source/doc/guisaveas.cxx
f085be
+++ b/sfx2/source/doc/guisaveas.cxx
f085be
@@ -1279,7 +1279,8 @@ OUString ModelData_Impl::GetRecommendedName( const OUString& aSuggestedName, con
f085be
                 uno::UNO_QUERY );
f085be
             if ( xTypeDetection.is() )
f085be
             {
f085be
-                INetURLObject aObj( OUString( "file:///c:/" ) + aRecommendedName );
f085be
+                INetURLObject aObj( OUString( "file:///c:/" ) );
f085be
+                aObj.SetName( aRecommendedName );
f085be
 
f085be
                 uno::Sequence< beans::PropertyValue > aTypeNameProps;
f085be
                 if ( ( xTypeDetection->getByName( aTypeName ) >>= aTypeNameProps ) && aTypeNameProps.getLength() )
f085be
-- 
f085be
1.9.3
f085be