use "|" as delimiter instead of ";", since "|" is not allowed in file/folder names

This commit is contained in:
Björn Schießle 2013-02-20 15:17:32 +01:00
parent 211e651d72
commit 3a364639b7
3 changed files with 4 additions and 8 deletions

View File

@ -5,11 +5,7 @@ OCP\JSON::callCheck();
$files = $_POST['files']; $files = $_POST['files'];
$dirlisting = $_POST['dirlisting']; $dirlisting = $_POST['dirlisting'];
$list = explode(';', $files); $list = explode('|', $files);
if (!is_array($list)){
$list = array($list);
}
$error = array(); $error = array();
$success = array(); $success = array();

View File

@ -5,7 +5,7 @@ OCP\JSON::callCheck();
$files = $_POST['files']; $files = $_POST['files'];
$dirlisting = $_POST['dirlisting']; $dirlisting = $_POST['dirlisting'];
$list = explode(';', $files); $list = explode('|', $files);
$error = array(); $error = array();
$success = array(); $success = array();

View File

@ -93,7 +93,7 @@ $(document).ready(function() {
$('.undelete').click('click',function(event) { $('.undelete').click('click',function(event) {
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>'; var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
var files=getSelectedFiles('file'); var files=getSelectedFiles('file');
var fileslist=files.join(';'); var fileslist=files.join('|');
var dirlisting=getSelectedFiles('dirlisting')[0]; var dirlisting=getSelectedFiles('dirlisting')[0];
for (var i in files) { for (var i in files) {
@ -118,7 +118,7 @@ $(document).ready(function() {
console.log("delete selected"); console.log("delete selected");
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'Delete permanently')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>'; var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'Delete permanently')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
var files=getSelectedFiles('file'); var files=getSelectedFiles('file');
var fileslist=files.join(';'); var fileslist=files.join('|');
var dirlisting=getSelectedFiles('dirlisting')[0]; var dirlisting=getSelectedFiles('dirlisting')[0];
for (var i in files) { for (var i in files) {