Plugin Directory

Changeset 3007339


Ignore:
Timestamp:
12/08/2023 03:51:28 PM (2 years ago)
Author:
guardgiant
Message:

Updating version 2.2.6

Location:
guardgiant/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guardgiant/trunk/guardgiant.php

    r2793604 r3007339  
    1717 * Plugin URI:        https://www.guardgiant.com/
    1818 * Description:       Security plugin with 100% brute force protection that doesn't lock out genuine users.
    19  * Version:           2.2.5
     19 * Version:           2.2.6
    2020 * Author:            GuardGiant Brute Force Protection
    2121 * Author URI:        https://www.guardgiant.com/
     
    3232
    3333
    34 define( 'GUARDGIANT_VERSION', '2.2.5' );
     34define( 'GUARDGIANT_VERSION', '2.2.6' );
    3535
    3636// default settings
  • guardgiant/trunk/includes/class-guardgiant-table-login-activity-log.php

    r2635026 r3007339  
    212212       
    213213        // Do we need to order the results?
     214        // attempt_time, trusted_device, ip_address, ip_location, username, result_code, result_description
     215
    214216        if ( ! empty( $_REQUEST['orderby'] ) ) {
    215             $sql .= ' ORDER BY ' . esc_sql($_REQUEST['orderby']);
    216             $sql .= ! empty( $_REQUEST['order'] ) ? ' ' . esc_sql( $_REQUEST['order'] ) : ' ASC';
     217            if (in_array($_REQUEST['orderby'], ["attempt_time", "trusted_device", "ip_address", "ip_location", "username", "result_code", "result_description"])) {
     218                $sql .= ' ORDER BY ' . esc_sql($_REQUEST['orderby']);
     219
     220                if (!empty($_REQUEST['order'])) {
     221                    if ($_REQUEST['order'] == 'desc')
     222                        $sql .= ' DESC';
     223                    else
     224                        $sql .= ' ASC';
     225                }
     226            }
    217227        } else {
    218228            // default to ordering by id
Note: See TracChangeset for help on using the changeset viewer.