Skip to content

Commit 9753a1d

Browse files
authored
Fix #1010: Re order authentication (#1012)
Re order auth for trends
1 parent 252ef02 commit 9753a1d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Changelog

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Nagios Core 4 Change Log
55
4.5.9 - 2024-XX-XX
66
------------------
77
* Fix unreachable notifications (Dylan Anderson)
8+
* Fix authentication in trends.cgi (Dylan Anderson)
89

910
4.5.8 - 2024-11-19
1011
------------------

cgi/trends.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,6 @@ int main(int argc, char **argv) {
317317
/* get the arguments passed in the URL */
318318
process_cgivars();
319319

320-
/* get authentication information */
321-
get_authentication_information(&current_authdata);
322-
323320
result = read_all_object_configuration_data(main_config_file, READ_ALL_OBJECT_DATA);
324321
if(result == ERROR) {
325322
if(mode == CREATE_HTML) {
@@ -343,6 +340,9 @@ int main(int argc, char **argv) {
343340

344341
document_header(TRUE);
345342

343+
/* get authentication information */
344+
get_authentication_information(&current_authdata);
345+
346346
if(compute_time_from_parts == TRUE)
347347
compute_report_times();
348348

0 commit comments

Comments
 (0)