diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-27 14:49:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-27 14:49:38 +0200 |
commit | 5e9137c9635141430b946aae2d0317c432a471ef (patch) | |
tree | a1480435f271dd1de08c92456a5872368183717a /svl | |
parent | aa279b32a8db69d00aa625714c3894f02ee9de26 (diff) |
These shall apparently check for URL scheme prefix match
...they had originally been
aURL.equalsIgnoreAsciiCaseAsciiL( "vnd.sun.star.pkg", 16 )
etc., so where likely confused with the OUString compareTo functions that take a
maxLength argument.
Change-Id: Ie12df4f589dda310b7e49eb93535ad797f88a8a7
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/fsstor/fsfactory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/fsstor/fsfactory.cxx b/svl/source/fsstor/fsfactory.cxx index 52c599e68d3b..2396bf0e3b99 100644 --- a/svl/source/fsstor/fsfactory.cxx +++ b/svl/source/fsstor/fsfactory.cxx @@ -127,8 +127,8 @@ uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::createInstanceWithA // allow to use other ucp's // if ( !isLocalNotFile_Impl( aURL ) ) - if ( aURL.equalsIgnoreAsciiCase("vnd.sun.star.pkg") - || aURL.equalsIgnoreAsciiCase("vnd.sun.star.zip") + if ( aURL.startsWithIgnoreAsciiCase("vnd.sun.star.pkg:") + || aURL.startsWithIgnoreAsciiCase("vnd.sun.star.zip:") || ::utl::UCBContentHelper::IsDocument( aURL ) ) { throw lang::IllegalArgumentException( |