mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed vulnerability if wp_capabilities has accent characters;
This commit is contained in:
@@ -178,7 +178,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
public function is_metakey_banned( $meta_key ) {
|
||||
$is_banned = false;
|
||||
foreach ( $this->banned_keys as $ban ) {
|
||||
if ( is_numeric( $meta_key ) || false !== stripos( $meta_key, $ban ) ) {
|
||||
if ( is_numeric( $meta_key ) || false !== stripos( $meta_key, $ban ) || false !== stripos( remove_accents( $meta_key ), $ban ) ) {
|
||||
$is_banned = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user