avoid config during fuzzing

Change-Id: I61906c243f592012691d69a335db42b2010402b7
This commit is contained in:
Caolán McNamara
2017-03-15 16:06:02 +00:00
parent 68598e06bc
commit 89628e4814

View File

@@ -285,10 +285,13 @@ void SvtSecurityOptions_Impl::SetProperty( sal_Int32 nProperty, const Any& rValu
{ {
m_seqSecureURLs.realloc( 0 ); m_seqSecureURLs.realloc( 0 );
rValue >>= m_seqSecureURLs; rValue >>= m_seqSecureURLs;
SvtPathOptions aOpt; if (!utl::ConfigManager::IsAvoidConfig())
sal_uInt32 nCount = m_seqSecureURLs.getLength(); {
for( sal_uInt32 nItem = 0; nItem < nCount; ++nItem ) SvtPathOptions aOpt;
m_seqSecureURLs[ nItem ] = aOpt.SubstituteVariable( m_seqSecureURLs[ nItem ] ); sal_uInt32 nCount = m_seqSecureURLs.getLength();
for( sal_uInt32 nItem = 0; nItem < nCount; ++nItem )
m_seqSecureURLs[ nItem ] = aOpt.SubstituteVariable( m_seqSecureURLs[ nItem ] );
}
m_bROSecureURLs = bRO; m_bROSecureURLs = bRO;
} }
break; break;