sfx2/source/doc/objstor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 06b918053fb9cf455cf431ca001a63030092d018 Author: Muthu Subramanian <[email protected]> Date: Thu Apr 25 11:47:56 2013 +0530 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. diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index a6fef76..b92a10a 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -383,7 +383,7 @@ void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xSto aEncryptionAlgs[1].Value <<= xml::crypto::CipherID::BLOWFISH_CFB_8; aEncryptionAlgs[2].Value <<= xml::crypto::DigestID::SHA1_1K; - if ( nDefVersion >= SvtSaveOptions::ODFVER_012 ) + if ( nVersion >= SOFFICE_FILEFORMAT_8 ) { try { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
