From: Björn Schießle Date: Fri, 24 May 2013 16:37:58 +0000 (+0200) Subject: no use the recoveryPassword var instead of accessing the POST array X-Git-Tag: v5.0.7~46^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8c235de8266639d01e1ac75946e5d2f572992d96;p=nextcloud-server.git no use the recoveryPassword var instead of accessing the POST array --- 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 ); }