[Pkg-owncloud-commits] [owncloud] 145/239: use POST instead of GET

David Prévot taffit at moszumanska.debian.org
Fri Nov 29 01:32:31 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 0617e06f69bdfbfb71733b5c4dcc1532b0823a51
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Tue Nov 26 11:38:49 2013 +0100

    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 f912a23..a28ebfa 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 eadcd23..2ee105c 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},

-- 
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