use "|" as delimiter instead of ";", since "|" is not allowed in file/folder names
This commit is contained in:
parent
211e651d72
commit
3a364639b7
|
@ -5,11 +5,7 @@ OCP\JSON::callCheck();
|
|||
|
||||
$files = $_POST['files'];
|
||||
$dirlisting = $_POST['dirlisting'];
|
||||
$list = explode(';', $files);
|
||||
|
||||
if (!is_array($list)){
|
||||
$list = array($list);
|
||||
}
|
||||
$list = explode('|', $files);
|
||||
|
||||
$error = array();
|
||||
$success = array();
|
||||
|
|
|
@ -5,7 +5,7 @@ OCP\JSON::callCheck();
|
|||
|
||||
$files = $_POST['files'];
|
||||
$dirlisting = $_POST['dirlisting'];
|
||||
$list = explode(';', $files);
|
||||
$list = explode('|', $files);
|
||||
|
||||
$error = array();
|
||||
$success = array();
|
||||
|
|
|
@ -93,7 +93,7 @@ $(document).ready(function() {
|
|||
$('.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 files=getSelectedFiles('file');
|
||||
var fileslist=files.join(';');
|
||||
var fileslist=files.join('|');
|
||||
var dirlisting=getSelectedFiles('dirlisting')[0];
|
||||
|
||||
for (var i in files) {
|
||||
|
@ -118,7 +118,7 @@ $(document).ready(function() {
|
|||
console.log("delete selected");
|
||||
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'Delete permanently')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
|
||||
var files=getSelectedFiles('file');
|
||||
var fileslist=files.join(';');
|
||||
var fileslist=files.join('|');
|
||||
var dirlisting=getSelectedFiles('dirlisting')[0];
|
||||
|
||||
for (var i in files) {
|
||||
|
|
Loading…
Reference in New Issue