summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-26 11:38:49 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-26 11:38:49 +0100
commit0617e06f69bdfbfb71733b5c4dcc1532b0823a51 (patch)
tree1f56e7ca1e29917b9d93c4dc87b976e5ffa0f0e7 /apps
parent35a6ad255d6b45e68c18ebcdb36ff0f99311d888 (diff)
downloadnextcloud-server-0617e06f69bdfbfb71733b5c4dcc1532b0823a51.tar.gz
nextcloud-server-0617e06f69bdfbfb71733b5c4dcc1532b0823a51.zip
use POST instead of GET
Diffstat (limited to 'apps')
-rw-r--r--apps/files_encryption/ajax/getMigrationStatus.php4
-rw-r--r--apps/files_encryption/js/detect-migration.js2
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},