Skip to content

Commit

Permalink
Merge branch 'bareos-16.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Dec 22, 2016
2 parents a1841ef + 104f61d commit 9c2f7bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install/bareos/bareos-dir.d/profile/webui-admin.conf
Expand Up @@ -3,7 +3,7 @@
#
Profile {
Name = "webui-admin"
CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, !purge, !sqlquery, !umount, !unmount, *all*
CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, !purge, !prune, !sqlquery, !umount, !unmount, *all*
Job ACL = *all*
Schedule ACL = *all*
Catalog ACL = *all*
Expand Down
4 changes: 3 additions & 1 deletion module/Job/view/job/job/details.phtml
Expand Up @@ -274,7 +274,9 @@ $(document).ready(function() {
"ordering": true,
"info": true,
"pagingType": "full_numbers",
"stateSave": true,
"lengthMenu": [ <?php echo $_SESSION['bareos']['dt_lengthmenu']; ?> ],
"pageLength": <?php echo $_SESSION['bareos']['dt_pagelength']; ?>,
"stateSave": <?php echo $_SESSION['bareos']['dt_statesave']; ?>,
"order": [[0, 'desc']],
"columnDefs": [
{
Expand Down
Expand Up @@ -340,7 +340,7 @@ private function buildSubtree()
foreach($files as $file) {
$items .= '{';
$items .= '"id":"' . $file["fileid"] . '"';
$items .= ',"text":"' . preg_replace('/[\x00-\x1F\x7F]/', '', $file["name"]) . '"';
$items .= ',"text":"' . preg_replace('/[\x00-\x1F\x7F]/', '', addslashes($file["name"])) . '"';
$items .= ',"icon":"glyphicon glyphicon-file"';
$items .= ',"state":""';
$items .= ',"data":' . \Zend\Json\Json::encode($file, \Zend\Json\Json::TYPE_OBJECT);
Expand Down

0 comments on commit 9c2f7bf

Please sign in to comment.