- fixed vulnerability with banned keys (made them not case-sensitive);

This commit is contained in:
Mykyta Synelnikov
2023-06-28 11:17:28 +03:00
parent 310c00d978
commit fc07de48b7
4 changed files with 50 additions and 15 deletions
+1 -1
View File
@@ -1557,7 +1557,7 @@ function um_submit_form_profile( $args ) {
UM()->fields()->editing = true;
if ( ! empty( $args['submitted'] ) ) {
$args['submitted'] = array_diff_key( $args['submitted'], array_flip( UM()->user()->banned_keys ) );
$args['submitted'] = UM()->form()->clean_submitted_data( $args['submitted'] );
}
/**