Make WordPress Core


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

List tables: escape user e-mails

Merges [34133] for 4.1 branch

File:
1 edited

Legend:

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

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