Plugin Directory

Changeset 3285063


Ignore:
Timestamp:
04/30/2025 04:59:10 PM (8 months ago)
Author:
shanebp
Message:

tag 2.5

Location:
bp-messages-tool/tags/2.5
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bp-messages-tool/tags/2.5/bpmt.php

    r3282160 r3285063  
    1919        <?php
    2020        if ( is_super_admin() && isset( $_GET['action'] ) ) {
    21 
    22             switch( $_GET['action'] ) {
     21           
     22            $action = sanitize_text_field( $_GET['action'] );
     23
     24            switch( $action) {
    2325
    2426                case 'select-member':
     
    113115
    114116        if( ! empty( $_POST['bpmt-user'] ) )
    115             $bpmt_user = $_POST['bpmt-user'];
     117            $bpmt_user = intval( sanitize_text_field($_POST['bpmt-user'] ) );
    116118        else {
    117119            _e("<div class='error below-h2'>ERROR -  Please enter a Member's login name or user id.</div>", 'bpmt');
     
    121123
    122124    elseif( isset( $_GET['user_id'] ) )
    123         $bpmt_user = intval( $_GET['user_id'] );
     125        $bpmt_user = intval( sanitize_text_field( $_GET['user_id'] ) );
    124126
    125127    else {
     
    153155    global $bpmt_user_data;
    154156
    155     $bpmt_user_data = bpmt_get_user_data( $_GET['user_id'] );
     157    $bpmt_user_data = bpmt_get_user_data( sanitize_text_field( $_GET['user_id'] ) );
    156158
    157159    if( $bpmt_user_data != NULL ) {
     
    174176function bpmt_get_thread_view() {
    175177    global $bpmt_user_data;
    176 
    177     $bpmt_user_data = bpmt_get_user_data( $_GET['user_id'] );
     178   
     179    $user_id = intval( sanitize_text_field( $_GET['user_id'] ) );
     180
     181    $bpmt_user_data = bpmt_get_user_data( $user_id );
    178182
    179183    if( $bpmt_user_data != NULL ) {
     
    369373        <tr>
    370374            <td align="right"><em>Display Name:</em></td>
    371             <td><?php echo $bpmt_user_data->display_name; ?></td>
     375            <td><?php echo esc_html( $bpmt_user_data->display_name ) ?></td>
    372376        </tr>
    373377
    374378        <tr>
    375379            <td align="right"><em>Login Name:</em></td>
    376             <td><?php echo $bpmt_user_data->user_login; ?></td>
     380            <td><?php echo esc_html( $bpmt_user_data->user_login ) ?></td>
    377381        </tr>
    378382
    379383        <tr>
    380384            <td align="right"><em>ID:</em></td>
    381             <td><?php echo $bpmt_user_data->ID; ?></td>
     385            <td><?php echo esc_html( $bpmt_user_data->ID ) ?></td>
    382386        </tr>
    383387
    384388        <tr>
    385389            <td align="right"><em>Box:</em></td>
    386             <td><?php echo ucfirst( $bpmt_user_data->box ); ?></td>
     390            <td><?php echo esc_html( ucfirst( $bpmt_user_data->box ) ) ?></td>
    387391        </tr>
    388392
  • bp-messages-tool/tags/2.5/loader.php

    r3282160 r3285063  
    44Plugin URI: https://www.philopress.com
    55Description: View Messages for any BuddyPress member via wp-admin screen Tools > BP Messages
    6 Version: 2.4
     6Version: 2.5
    77Author: PhiloPress
    88Author URI: https://www.philopress.com/
  • bp-messages-tool/tags/2.5/readme.txt

    r3282160 r3285063  
    77Requires at least: WP 4.0
    88Tested up to: 6.8
    9 Stable tag: 2.4
     9Stable tag: 2.5
    1010License: GPLv2 or later
    1111
     
    4545== Changelog ==
    4646
    47 = 2.3 =
     47= 2.5 =
    4848* fix XSS vulnerability
    4949
Note: See TracChangeset for help on using the changeset viewer.