Plugin Directory

Changeset 3491416


Ignore:
Timestamp:
03/26/2026 04:25:13 AM (5 days ago)
Author:
ahriad
Message:

Release 1.0.2

Location:
turbo-rate-limiter
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • turbo-rate-limiter/tags/1.0.2/includes/class-rate-limiter.php

    r3491018 r3491416  
    342342    /**
    343343     * Gets the current request URI.
    344  *
     344     *
    345345     * @since 1.0.0
    346346     *
     
    348348     */
    349349    private function get_request_uri() {
    350         return isset($_SERVER['REQUEST_URI']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])) : '';
    351     }
    352 
    353     /**
     350        if (!isset($_SERVER['REQUEST_URI'])) {
     351            return '';
     352        }
     353
     354        // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Request URI is validated for UTF-8 and control characters below; sanitize_text_field() corrupts encoded UTF-8 query strings.
     355        $uri = wp_unslash($_SERVER['REQUEST_URI']);
     356
     357        if (!is_string($uri) || '' === $uri) {
     358            return '';
     359        }
     360
     361        $uri = wp_check_invalid_utf8($uri, true);
     362
     363        if ('' === $uri) {
     364            return '';
     365        }
     366
     367        $uri = preg_replace('/[\x00-\x1F\x7F]/u', '', $uri);
     368
     369        return is_string($uri) ? $uri : '';
     370    }
     371/**
    354372     * Finds the first matching filter for a URI.
    355373 *
  • turbo-rate-limiter/tags/1.0.2/readme.txt

    r3491018 r3491416  
    55Requires PHP: 7.4
    66Tested up to: 6.9
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPL v2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9191== Changelog ==
    9292
     93= 1.0.2 =
     94* Preserve encoded Unicode request URIs in the rate limiter.
     95
    9396= 1.0.1 =
    9497* Removed the unused cleanup cron because WordPress already expires rate-limit transients automatically.
     
    104107
    105108== Upgrade Notice ==
     109
     110= 1.0.2 =
     111This release preserves encoded Unicode request URIs in the rate limiter.
    106112
    107113= 1.0.1 =
  • turbo-rate-limiter/tags/1.0.2/turbo-rate-limiter.php

    r3491018 r3491416  
    33 * Plugin Name: Turbo Rate Limiter
    44 * Description: A WordPress rate limiter with URI-based filters, customizable limits, and test mode.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: Abdul-Hameed Riad
    77 * Author URI: https://github.com/ahriad
     
    2424
    2525// Define plugin constants
    26 define('TURBORL_VERSION', '1.0.1');
     26define('TURBORL_VERSION', '1.0.2');
    2727define('TURBORL_PLUGIN_FILE', __FILE__);
    2828define('TURBORL_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • turbo-rate-limiter/trunk/includes/class-rate-limiter.php

    r3491018 r3491416  
    342342    /**
    343343     * Gets the current request URI.
    344  *
     344     *
    345345     * @since 1.0.0
    346346     *
     
    348348     */
    349349    private function get_request_uri() {
    350         return isset($_SERVER['REQUEST_URI']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])) : '';
    351     }
    352 
    353     /**
     350        if (!isset($_SERVER['REQUEST_URI'])) {
     351            return '';
     352        }
     353
     354        // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Request URI is validated for UTF-8 and control characters below; sanitize_text_field() corrupts encoded UTF-8 query strings.
     355        $uri = wp_unslash($_SERVER['REQUEST_URI']);
     356
     357        if (!is_string($uri) || '' === $uri) {
     358            return '';
     359        }
     360
     361        $uri = wp_check_invalid_utf8($uri, true);
     362
     363        if ('' === $uri) {
     364            return '';
     365        }
     366
     367        $uri = preg_replace('/[\x00-\x1F\x7F]/u', '', $uri);
     368
     369        return is_string($uri) ? $uri : '';
     370    }
     371/**
    354372     * Finds the first matching filter for a URI.
    355373 *
  • turbo-rate-limiter/trunk/readme.txt

    r3491018 r3491416  
    55Requires PHP: 7.4
    66Tested up to: 6.9
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPL v2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9191== Changelog ==
    9292
     93= 1.0.2 =
     94* Preserve encoded Unicode request URIs in the rate limiter.
     95
    9396= 1.0.1 =
    9497* Removed the unused cleanup cron because WordPress already expires rate-limit transients automatically.
     
    104107
    105108== Upgrade Notice ==
     109
     110= 1.0.2 =
     111This release preserves encoded Unicode request URIs in the rate limiter.
    106112
    107113= 1.0.1 =
  • turbo-rate-limiter/trunk/turbo-rate-limiter.php

    r3491018 r3491416  
    33 * Plugin Name: Turbo Rate Limiter
    44 * Description: A WordPress rate limiter with URI-based filters, customizable limits, and test mode.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: Abdul-Hameed Riad
    77 * Author URI: https://github.com/ahriad
     
    2424
    2525// Define plugin constants
    26 define('TURBORL_VERSION', '1.0.1');
     26define('TURBORL_VERSION', '1.0.2');
    2727define('TURBORL_PLUGIN_FILE', __FILE__);
    2828define('TURBORL_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.