Make WordPress Core


Ignore:
Timestamp:
09/14/2015 10:40:23 PM (9 years ago)
Author:
nbachiyski
Message:

List tables: escape user e-mails

Merges [34133] for 4.2 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/src/wp-admin/includes/class-wp-users-list-table.php

    r32015 r34138  
    421421                    break;
    422422                case 'email':
    423                     $r .= "<td $attributes><a href='mailto:$email' title='" . esc_attr( sprintf( __( 'E-mail: %s' ), $email ) ) . "'>$email</a></td>";
     423                    $r .= "<td $attributes><a href='" . esc_url( "mailto:$email" ) . "' title='" . esc_attr( sprintf( __( 'E-mail: %s' ), $email ) ) . "'>$email</a></td>";
    424424                    break;
    425425                case 'role':
Note: See TracChangeset for help on using the changeset viewer.