Making WordPress.org


Ignore:
Timestamp:
06/17/2016 07:39:38 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Properly encode display names.

H/t ocean90.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php

    r3292 r3395  
    11<?php
    22namespace WordPressdotorg\Plugin_Directory\Shortcodes;
     3use WordPressdotorg\Plugin_Directory\Template;
    34use WordPressdotorg\Plugin_Directory\Tools;
    45
     
    2728            }
    2829
    29             $output .= '<li>' . get_avatar( $contributor->ID, 32 ) . utf8_encode( $contributor->display_name ) . '</li>';
     30            $output .= '<li>' . get_avatar( $contributor->ID, 32 ) . Template::encode( $contributor->display_name ) . '</li>';
    3031        }
    3132        $output .= '</ul>';
Note: See TracChangeset for help on using the changeset viewer.