List tables: escape user e-mails
Better safe than sorry. git-svn-id: https://develop.svn.wordpress.org/trunk@34133 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a9e1f79323
commit
1541d43033
@ -240,7 +240,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
* @param WP_User $user The current WP_User object.
|
||||
*/
|
||||
public function column_email( $user ) {
|
||||
echo "<a href='mailto:$user->user_email'>$user->user_email</a>";
|
||||
echo "<a href='" . esc_url( "mailto:$user->user_email" ) . "'>$user->user_email</a>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -434,7 +434,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
$r .= "$user_object->first_name $user_object->last_name";
|
||||
break;
|
||||
case 'email':
|
||||
$r .= "<a href='mailto:$email'>$email</a>";
|
||||
$r .= "<a href='" . esc_url( "mailto:$email" ) . "'>$email</a>";
|
||||
break;
|
||||
case 'role':
|
||||
$r .= $role_name;
|
||||
|
Loading…
Reference in New Issue
Block a user