WordPress.org

Making WordPress.org

Changeset 3097


Ignore:
Timestamp:
05/07/2016 12:46:53 PM (4 years ago)
Author:
ocean90
Message:

Slack: Replace htmlentities() with htmlspecialchars() in Ticket::get_text() to prevent converting all characters to HTML entities.

See [1210].
See #1694.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/ticket.php

    r1130 r3097  
    1313        }
    1414
    15         return sprintf( "<%s|#%s: %s>", $this->get_url(), $this->id, htmlentities( $this->summary, ENT_NOQUOTES ) );
     15        return sprintf( "<%s|#%s: %s>", $this->get_url(), $this->id, htmlspecialchars( $this->summary, ENT_NOQUOTES ) );
    1616    }
    1717
     
    7474    static function get_ticket_fields( $ticket ) {
    7575        $new = false !== strpos( get_called_class(), 'New_Ticket' );
    76    
     76
    7777        $ticket_fields = array();
    7878
Note: See TracChangeset for help on using the changeset viewer.