diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-24 18:37:58 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-24 18:37:58 +0200 |
commit | f56802a437e47deae84cbd5a337620d79dbae34e (patch) | |
tree | 5386ced69bad89e111b715f7985a5c082ed026f2 | |
parent | 4911305887840e21452b77f594cdf7e14ed967bf (diff) | |
download | nextcloud-server-f56802a437e47deae84cbd5a337620d79dbae34e.tar.gz nextcloud-server-f56802a437e47deae84cbd5a337620d79dbae34e.zip |
no use the recoveryPassword var instead of accessing the POST array
-rwxr-xr-x | apps/files_encryption/lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/helper.php b/apps/files_encryption/lib/helper.php index 43f573c16b9..7a2d19eed57 100755 --- a/apps/files_encryption/lib/helper.php +++ b/apps/files_encryption/lib/helper.php @@ -146,7 +146,7 @@ class Helper } else { // get recovery key and check the password $util = new \OCA\Encryption\Util( new \OC_FilesystemView( '/' ), \OCP\User::getUser() ); - $return = $util->checkRecoveryPassword( $_POST['recoveryPassword'] ); + $return = $util->checkRecoveryPassword( $recoveryPassword ); if ( $return ) { \OC_Appconfig::setValue( 'files_encryption', 'recoveryAdminEnabled', 1 ); } |