Skip to content

Commit

Permalink
use json to encode user list
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Jun 19, 2013
1 parent 85585ed commit 6778a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/files/ajax/scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if ($_GET['users'] === 'all') {
$users = OC_User::getUsers();
} else {
$users = explode(',', $_GET['users']);
$users = json_decode($_GET['users']);
}
} else {
$users = array(OC_User::getUser());
Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ function scanFiles(force, dir, users){
if (users === 'all') {
usersString = users;
} else {
usersString = users.join(',');
usersString = JSON.stringify(users);
}
scannerEventSource = new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force: force,dir: dir, users: usersString});
} else {
Expand Down

0 comments on commit 6778a45

Please sign in to comment.