Skip to content

Commit

Permalink
Fixing Issue #5057 - PHP8.1 Deprecation warnings
Browse files Browse the repository at this point in the history
PHP8.1 when adding a device rule in automation deprecated messages occur
  • Loading branch information
TheWitness committed Dec 15, 2022
1 parent 62300e7 commit fa49208
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 @@ -50,6 +50,7 @@ Cacti CHANGELOG
-issue#5033: Installer shows deprecated messages on PHP 8.1.2
-issue#5034: RRD Proxy Server not supported by CLI script "structure_rra_paths.php"
-issue#5041: md5_file error in custom theme after updating to 1.2.23
-issue#5057: PHP8.1 when adding a device rule in automation deprecated messages occour
-issue#5066: Cacti does not escape the watermark leading to broken graphs
-issue#5068: Installer deprecation messages during CLI install in PHP8.2
-issue#5084: After Update 1.2.20 to 1.2.22 CMDPHP ERROR: A DB Cell Failed
Expand Down
2 changes: 1 addition & 1 deletion automation_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function form_save() {
$save['sysName'] = get_nfilter_request_var('sysName');
$save['sysOid'] = get_nfilter_request_var('sysOid');
if (function_exists('filter_var')) {
$save['sysDescr'] = filter_var($save['sysDescr'], FILTER_SANITIZE_STRING);
$save['sysDescr'] = filter_var($save['sysDescr'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
} else {
$save['sysDescr'] = strip_tags($save['sysDescr']);
}
Expand Down

0 comments on commit fa49208

Please sign in to comment.