Skip to content

Commit

Permalink
Fixing #5490 - Infinite Database Recursion Error
Browse files Browse the repository at this point in the history
Database failure causes infinite recursion in cacti_log() followed by machine lockup
  • Loading branch information
TheWitness committed Sep 30, 2023
1 parent 83b063d commit 3682057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Cacti CHANGELOG
-issue#5483: cacti 1.2.25 ubuntu server 22.04.3 php8.1 add device error
-issue#5485: Selecting a host device in System Utilities - View Data Query Cache raises error in cacti log
-issue#5489: remove_graphs.php does not handle "--preserve" option
-issue#5490: Database failure causes infinite recursion in cacti_log() followed by machine lockup
-issue#5492: Cacti 1.2.25 ss_host_cpu.php CPU graphs not updating anymore on Windows servers
-issue#5493: Multi select drop down list box not rendered correctly in Chrome and Edge
-issue#5494: typo error in name used in inserts array for selective_plugin_debug
Expand Down
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ function read_config_option($config_name, $force = false) {
isset($database_sessions["$database_hostname:$database_port:$database_default"])) {

// Get the database setting
$db_result = db_fetch_row_prepared('SELECT value FROM settings WHERE name = ?', array($config_name));
$db_result = db_fetch_row_prepared('SELECT value FROM settings WHERE name = ?', array($config_name), false);

if (cacti_sizeof($db_result)) {
$value = $db_result['value'];
Expand Down

0 comments on commit 3682057

Please sign in to comment.