-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pfSense-pkg-suricata-6.0.6_1 - Fix PHP8 compatibility issues. Redmine Issue #13531. #1192
pfSense-pkg-suricata-6.0.6_1 - Fix PHP8 compatibility issues. Redmine Issue #13531. #1192
Conversation
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata.inc
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata.inc
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/www/suricata/suricata_flow_stream.php
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/www/suricata/suricata_global.php
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_check_cron_misc.inc
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_check_cron_misc.inc
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_migrate_config.php
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_migrate_config.php
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_migrate_config.php
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/www/suricata/suricata_rules_edit.php
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_check_cron_misc.inc
Outdated
Show resolved
Hide resolved
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata.inc
Outdated
Show resolved
Hide resolved
I believe the Suricata GUI package update for PHP 8.1 is ready for merging unless there are additional reviewer comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good enough to merge for additional testing
security/pfSense-pkg-suricata/files/usr/local/pkg/suricata/suricata_generate_yaml.php
Show resolved
Hide resolved
@@ -129,12 +117,12 @@ | |||
/* from the package configuration. The status is now */ | |||
/* stored in a local file. */ | |||
/**********************************************************/ | |||
if (isset($config['installedpackages']['suricata']['config'][0]['last_rule_upd_status'])) { | |||
unset($config['installedpackages']['suricata']['config'][0]['last_rule_upd_status']); | |||
if (config_path_enabled('installedpackages/suricata/config/0', 'last_rule_upd_status')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these and the following, I'd suggest straying away from config_path_enabled() as the intent there is to check if a particular element or property is enabled, with the ultimate goal of being able to abstract out what the implementation of 'enabled' is in the backend of the config. I'd recommend instead using empty as above, or if these properties are optional use config_get_path('foo/bar/baz') !== null
pfSense-pkg-suricata-6.0.6_1
This update fixes a number of PHP8 compatibility issues and introduces the new config_path() and array_path() functions.
New Features:
Bug Fixes: