Make WordPress Core

Changeset 34137


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

List tables: escape user e-mails

Merges [34133] for 4.3 branch

Location:
branches/4.3/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r33270 r34137  
    234234     */
    235235    public function column_email( $user ) {
    236         echo "<a href='mailto:$user->user_email'>$user->user_email</a>";
     236        echo "<a href='" . esc_url( "mailto:$user->user_email" ) . "'>$user->user_email</a>";
    237237    }
    238238
  • branches/4.3/src/wp-admin/includes/class-wp-users-list-table.php

    r33210 r34137  
    436436                        break;
    437437                    case 'email':
    438                         $r .= "<a href='mailto:$email'>$email</a>";
     438                        $r .= "<a href='" . esc_url( "mailto:$email" ) . "'>$email</a>";
    439439                        break;
    440440                    case 'role':
Note: See TracChangeset for help on using the changeset viewer.