Kaydet (Commit) 06b91805 authored tarafından Muthu Subramanian's avatar Muthu Subramanian

Broken security/password when saving to older odf (sx?) formats.

nDefVersion is the default doc version, whereas, we need
to check the current document version in question.
While this changes just one of the places - a review is
probably required for other places as well, where
nDefVersion is used.
üst 427d20e7
...@@ -383,7 +383,7 @@ void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xSto ...@@ -383,7 +383,7 @@ void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xSto
aEncryptionAlgs[1].Value <<= xml::crypto::CipherID::BLOWFISH_CFB_8; aEncryptionAlgs[1].Value <<= xml::crypto::CipherID::BLOWFISH_CFB_8;
aEncryptionAlgs[2].Value <<= xml::crypto::DigestID::SHA1_1K; aEncryptionAlgs[2].Value <<= xml::crypto::DigestID::SHA1_1K;
if ( nDefVersion >= SvtSaveOptions::ODFVER_012 ) if ( nVersion >= SOFFICE_FILEFORMAT_8 )
{ {
try try
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment