summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-11 10:31:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-11-12 12:12:34 +0000
commit2ee3782d5f21c9dc3fcc52072160e4f857691e97 (patch)
tree00a0ae2a3707fe213d25c3d59af736389e39b6f3 /unotools/source
parent88cb2a731bf445776adb6c047010bbd0dae3c633 (diff)
Fix CompareIgnoreCaseToAscii -> matchIgnoreAsciiCaseAsciiL regression
...introduced with 19ebc215d19ed9c7c5c6fdabf2f4acd5af02cbc4 "INTEGRATION: CWS ineturl1: #i34006# modify INetURLObject to use rtl::OUString and rtl::OUStringBuffer," where String::CompareIgnoreCaseToAscii returns StringCompare but rtl::OUString::matchIgnoreAsciiCaseAsciiL return sal_Bool. Change-Id: I009bd6f606850f4e971fda4a1b468e7b0d102685 Reviewed-on: https://gerrit.libreoffice.org/6635 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/config/securityoptions.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index cd0e6c7ba2ed..153004f6cdba 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -880,7 +880,7 @@ sal_Bool SvtSecurityOptions_Impl::IsSecureURL( const OUString& sURL ,
// All other URLs must checked in combination with referer and internal information about security
if ( (aProtocol != INET_PROT_MACRO && aProtocol != INET_PROT_SLOT) ||
- aURL.GetMainURL( INetURLObject::NO_DECODE ).matchIgnoreAsciiCaseAsciiL( "macro:///", 9 ) == 0)
+ aURL.GetMainURL( INetURLObject::NO_DECODE ).matchIgnoreAsciiCaseAsciiL( "macro:///", 9 ) )
{
// security check only for "macro" ( without app basic ) or "slot" protocols
bState = sal_True;