Skip to content

Commit

Permalink
Merge branch 'master' into add-light-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tsadpbb committed Dec 16, 2024
2 parents 66e6135 + 4832ead commit 98616ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Nagios Core 4 Change Log
------------------
* Fix unreachable notifications (Dylan Anderson)
* Add light option in new exfoliation theme (Dylan Anderson)
* Fix authentication in trends.cgi (Dylan Anderson)

4.5.8 - 2024-11-19
------------------
Expand Down
6 changes: 3 additions & 3 deletions cgi/trends.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ int main(int argc, char **argv) {
/* get the arguments passed in the URL */
process_cgivars();

/* get authentication information */
get_authentication_information(&current_authdata);

result = read_all_object_configuration_data(main_config_file, READ_ALL_OBJECT_DATA);
if(result == ERROR) {
if(mode == CREATE_HTML) {
Expand All @@ -343,6 +340,9 @@ int main(int argc, char **argv) {

document_header(TRUE);

/* get authentication information */
get_authentication_information(&current_authdata);

if(compute_time_from_parts == TRUE)
compute_report_times();

Expand Down
2 changes: 1 addition & 1 deletion html/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"Click here to watch the entire Nagios Core 4 Tour!</a>";
<?php } ?>
$(document).ready(function() {
var user = "<?php echo htmlspecialchars($_SERVER['REMOTE_USER']); ?>";
var user = "<?php echo htmlspecialchars($_SERVER['REMOTE_USER'] ?? ''); ?>";

<?php if ($cfg["enable_page_tour"]) { ?>
vBoxId += ";" + user;
Expand Down

0 comments on commit 98616ed

Please sign in to comment.