use post instead of get

remotes/origin/stable5
Jörn Friedrich Dreyer 12 years ago
parent 0089b17749
commit 1d0ee61f3a
  1. 6
      apps/files/ajax/move.php
  2. 4
      apps/files/js/files.js

@ -7,9 +7,9 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
// Get data
$dir = stripslashes($_GET["dir"]);
$file = stripslashes($_GET["file"]);
$target = stripslashes(rawurldecode($_GET["target"]));
$dir = stripslashes($_POST["dir"]);
$file = stripslashes($_POST["file"]);
$target = stripslashes(rawurldecode($_POST["target"]));
$l=OC_L10N::get('files');

@ -877,7 +877,7 @@ var folderDropOptions={
$(files).each(function(i,row){
var dir = $(row).data('dir');
var file = $(row).data('filename');
$.get(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: dir+'/'+target }, function(result) {
$.post(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: dir+'/'+target }, function(result) {
if (result) {
if (result.status === 'success') {
//recalculate folder size
@ -925,7 +925,7 @@ var crumbDropOptions={
$(files).each(function(i,row){
var dir = $(row).data('dir');
var file = $(row).data('filename');
$.get(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: target }, function(result) {
$.post(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: target }, function(result) {
if (result) {
if (result.status === 'success') {
FileList.remove(file);

Loading…
Cancel
Save