From 4b336c94a6a7b15629a061526ffb51644f04eefd Mon Sep 17 00:00:00 2001 From: TheWitness Date: Tue, 19 May 2026 11:54:31 -0400 Subject: [PATCH 1/2] fix: Version should be 1.6 and not 1.5 --- CHANGELOG.md | 10 ++++++---- INFO | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 477f592..9ebeb48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,14 +14,16 @@ IMPORTANT NOTE: This version only works on CACTI 1.x++! ## Changes ---- 1.5 --- -* issue#124: Weathermap slow when some graphs are broken -* issue#173: Data Source select queries slow or not working -* issue#186: Popups are not working in standalone mode +--- 1.6 --- * issue#211: Warn Count is being reset too early * issue: Attempt to keep the plugin basepath the weathermap directory * issue: Miscellaneous security hardening and preparation for Cacti 1.3 * feature#219: Add Via Style as a Link form Option + +--- 1.5 --- +* issue#124: Weathermap slow when some graphs are broken +* issue#173: Data Source select queries slow or not working +* issue#186: Popups are not working in standalone mode * feature#193: Allow the Info URL to be either "Time View Graph" or "Classic View Graph" --- 1.4 --- diff --git a/INFO b/INFO index 8d1a2cf..53a29dd 100644 --- a/INFO +++ b/INFO @@ -1,6 +1,6 @@ [info] name = weathermap -version = 1.5 +version = 1.6 longname = Weathermap Plugin author = The Cacti Group, Howard Jones email = developers@cacti.net From d8a3a7686f781b3dee50513e67544efbdca138fd Mon Sep 17 00:00:00 2001 From: TheWitness Date: Tue, 19 May 2026 16:58:44 -0400 Subject: [PATCH 2/2] security: Additional minor bug fixes --- cli/cacti-mapper.php | 2 +- js/editor.js | 4 +- js/jquery.ddslick.js | 4 +- js/map-cycle.js | 8 +-- lib/WeatherMap.class.php | 40 +++++++-------- lib/WeatherMap.functions.php | 6 +-- lib/WeatherMapLink.class.php | 6 +-- lib/WeatherMapNode.class.php | 6 +-- .../WeatherMapDataSource_dsstats.php | 2 +- .../WeatherMapDataSource_fping.php | 15 +++--- lib/datasources/WeatherMapDataSource_rrd.php | 4 +- lib/editor.inc.php | 17 +++++++ lib/poller-common.php | 6 +-- weathermap-cacti-plugin-editor.php | 11 +++- weathermap-cacti-plugin-mgmt.php | 51 ++++++++----------- weathermap-cacti-plugin.php | 15 +++--- 16 files changed, 107 insertions(+), 90 deletions(-) diff --git a/cli/cacti-mapper.php b/cli/cacti-mapper.php index c73bd25..1346751 100644 --- a/cli/cacti-mapper.php +++ b/cli/cacti-mapper.php @@ -147,7 +147,7 @@ unset($interfaces[$key]); $cleaned++; } else { - $interfaces[$key]['nicename'] = (isset($int['name']) ? $int['name'] : (isset($int['descr']) ? $int['descr'] : (isset($int['alias']) ? $int['alias'] : 'Interface #' . $int['index']))); + $interfaces[$key]['nicename'] = ($int['name'] ?? ($int['descr'] ?? ($int['alias'] ?? 'Interface #' . $int['index']))); } } } diff --git a/js/editor.js b/js/editor.js index 7679d1a..ce5042c 100644 --- a/js/editor.js +++ b/js/editor.js @@ -1051,11 +1051,11 @@ function prime_link_form(name) { // if that didn't 'stick', then we need to add the special value if ($('#link_commentposout').val() != mylink.commentposout) { - $('#link_commentposout').prepend(""); + $('#link_commentposout').prepend($('"); + $('#link_commentposin').prepend($('