Whitelist a line in WC Beta Tester from QIT security tests (#49965)
* Whitelist succeeding line from QIT's security scanner * Add changelog
This commit is contained in:
parent
236cd442d6
commit
8be71d467d
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Whitelist line with maybe_unserialize() function call from QIT security tests.
|
|
@ -172,6 +172,7 @@ class WC_Beta_Tester_Import_Export {
|
||||||
if ( ! isset( $settings[ $option_name ] ) ) {
|
if ( ! isset( $settings[ $option_name ] ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// nosemgrep scanner.php.wp.security.object-injection, audit.php.wp.security.object-injection
|
||||||
$setting = maybe_unserialize( $settings[ $option_name ] );
|
$setting = maybe_unserialize( $settings[ $option_name ] );
|
||||||
if ( is_null( $setting ) ) {
|
if ( is_null( $setting ) ) {
|
||||||
delete_option( $option_name );
|
delete_option( $option_name );
|
||||||
|
|
Loading…
Reference in New Issue