mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
- fixed issue with echo XSS in user description;
This commit is contained in:
@@ -4203,6 +4203,12 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$res = stripslashes( $res );
|
||||
}
|
||||
if ( 'description' === $data['metakey'] ) {
|
||||
if ( UM()->options()->get( 'profile_show_html_bio' ) ) {
|
||||
$res = make_clickable( wpautop( wp_kses_post( $res ) ) );
|
||||
} else {
|
||||
$res = esc_html( $res );
|
||||
}
|
||||
|
||||
$res = nl2br( $res );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user