[Pkg-owncloud-commits] [owncloud] 23/46: fixing usage of EncryptionException
David Prévot
taffit at moszumanska.debian.org
Fri Oct 24 15:11:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 5b6ba397347eb751cdd19fe6f3d5abb331031889
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Fri Oct 17 11:46:22 2014 +0200
fixing usage of EncryptionException
---
apps/files_encryption/lib/crypt.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php
index f0905a8..bd86b2b 100755
--- a/apps/files_encryption/lib/crypt.php
+++ b/apps/files_encryption/lib/crypt.php
@@ -24,6 +24,7 @@
*/
namespace OCA\Encryption;
+use OCA\Encryption\Exceptions\EncryptionException;
require_once __DIR__ . '/../3rdparty/Crypt_Blowfish/Blowfish.php';
@@ -321,9 +322,9 @@ class Crypt {
$padded = self::addPadding($catfile);
return $padded;
- } catch (OCA\Encryption\Exceptions\EncryptionException $e) {
- $message = 'Could not encrypt file content (code: ' . $e->getCode . '): ';
- \OCP\Util::writeLog('files_encryption', $message . $e->getMessage, \OCP\Util::ERROR);
+ } catch (EncryptionException $e) {
+ $message = 'Could not encrypt file content (code: ' . $e->getCode() . '): ';
+ \OCP\Util::writeLog('files_encryption', $message . $e->getMessage(), \OCP\Util::ERROR);
return false;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list