Plugin Directory

Changeset 3300615


Ignore:
Timestamp:
05/26/2025 10:53:13 AM (10 months ago)
Author:
robert.peake
Message:

improve sanitization of slug in admin

Location:
better-random-redirect
Files:
3 edited
8 copied

Legend:

Unmodified
Added
Removed
  • better-random-redirect/tags/1.3.20/better-random-redirect.php

    r3290898 r3300615  
    55Description: Based on the original Random Redirect, this plugin enables efficent, easy random redirection to a post.
    66Author: Robert Peake
    7 Version: 1.3.19
     7Version: 1.3.20
    88Author URI: https://github.com/cyberscribe/better-random-redirecT
    99Text Domain: better_random_redirect
  • better-random-redirect/tags/1.3.20/classes/BetterRandomRedirect.php

    r3290898 r3300615  
    6868
    6969    public static function slug_check( $string ) {
    70         $string = filter_var($string, FILTER_SANITIZE_URL); // sanitize as if url component
     70        $string = sanitize_text_field($string);
    7171        if ($string == '') return __('random','better_random_redirect'); // blank is invalid, revert to default
    7272        return $string; // otherwise use value user set
  • better-random-redirect/tags/1.3.20/readme.txt

    r3290898 r3300615  
    44Requires at least: 3.0.0
    55Tested up to: 6.8.1
    6 Stable tag: 1.3.19
     6Stable tag: 1.3.20
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 1.3.20 =
     81 * Improve sanitization of user-supplied slug in admin
    7982
    8083= 1.3.19 =
  • better-random-redirect/trunk/better-random-redirect.php

    r3290898 r3300615  
    55Description: Based on the original Random Redirect, this plugin enables efficent, easy random redirection to a post.
    66Author: Robert Peake
    7 Version: 1.3.19
     7Version: 1.3.20
    88Author URI: https://github.com/cyberscribe/better-random-redirecT
    99Text Domain: better_random_redirect
  • better-random-redirect/trunk/classes/BetterRandomRedirect.php

    r3290898 r3300615  
    6868
    6969    public static function slug_check( $string ) {
    70         $string = filter_var($string, FILTER_SANITIZE_URL); // sanitize as if url component
     70        $string = sanitize_text_field($string);
    7171        if ($string == '') return __('random','better_random_redirect'); // blank is invalid, revert to default
    7272        return $string; // otherwise use value user set
  • better-random-redirect/trunk/readme.txt

    r3290898 r3300615  
    44Requires at least: 3.0.0
    55Tested up to: 6.8.1
    6 Stable tag: 1.3.19
     6Stable tag: 1.3.20
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 1.3.20 =
     81 * Improve sanitization of user-supplied slug in admin
    7982
    8083= 1.3.19 =
Note: See TracChangeset for help on using the changeset viewer.