From 0617e06f69bdfbfb71733b5c4dcc1532b0823a51 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 26 Nov 2013 11:38:49 +0100 Subject: [PATCH] use POST instead of GET --- apps/files_encryption/ajax/getMigrationStatus.php | 4 ++-- apps/files_encryption/js/detect-migration.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_encryption/ajax/getMigrationStatus.php b/apps/files_encryption/ajax/getMigrationStatus.php index f912a238caa..a28ebfac7f7 100644 --- a/apps/files_encryption/ajax/getMigrationStatus.php +++ b/apps/files_encryption/ajax/getMigrationStatus.php @@ -10,8 +10,8 @@ use OCA\Encryption\Util; \OCP\JSON::checkAppEnabled('files_encryption'); -$user = isset($_GET['user']) ? $_GET['user'] : ''; -$password = isset($_GET['password']) ? $_GET['password'] : ''; +$user = isset($_POST['user']) ? $_POST['user'] : ''; +$password = isset($_POST['password']) ? $_POST['password'] : ''; $migrationCompleted = true; diff --git a/apps/files_encryption/js/detect-migration.js b/apps/files_encryption/js/detect-migration.js index eadcd237078..2ee105cbfaf 100644 --- a/apps/files_encryption/js/detect-migration.js +++ b/apps/files_encryption/js/detect-migration.js @@ -11,7 +11,7 @@ $(document).ready(function(){ var user = $('#user').val(); var password = $('#password').val(); $.ajax({ - type: 'GET', + type: 'POST', url: OC.linkTo('files_encryption', 'ajax/getMigrationStatus.php'), dataType: 'json', data: {user: user, password: password},