Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Feb 10, 2025
1 parent f8c9818 commit 7c1e2e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/controllers/ajax/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
$logfile = \Controllers\Common::validateData($_POST['logfile']);

// Check if the log file is allowed and is not outside the logs directory. Verify that the user is not trying to do something malicious.
if (!preg_match('#^' . WS_LOGS_DIR . '#' , realpath(WS_LOGS_DIR . '/' . $logfile))) {
if (!preg_match('#^' . WS_LOGS_DIR . '#', realpath(WS_LOGS_DIR . '/' . $logfile))) {
response(HTTP_BAD_REQUEST, 'Invalid log file');
}

Expand Down
4 changes: 2 additions & 2 deletions www/public/resources/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ function getGetParams()

/**
* Return true if the value is empty
* @param {*} value
* @returns
* @param {*} value
* @returns
*/
function empty(value)
{
Expand Down
3 changes: 1 addition & 2 deletions www/views/includes/tables/tasks/list.inc.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div class="reloadable-table" table="<?= $table ?>" offset="<?= $reloadableTableOffset ?>">
<?php
if (!empty($reloadableTableContent)) :

if (!empty($taskTableTitle)) {
echo '<h6 class="margin-top-0 margin-bottom-5">' . $taskTableTitle . '</h6>';
}
Expand Down Expand Up @@ -213,7 +212,7 @@
if ($item['Status'] == 'stopped') {
echo '<img class="icon-np" src="/assets/icons/warning-red.svg" title="Task stopped by the user" />';
}

/**
* Delete task button, only for scheduled and queued tasks
*/
Expand Down

0 comments on commit 7c1e2e6

Please sign in to comment.