Plugin Directory

Changeset 3404569


Ignore:
Timestamp:
11/28/2025 03:00:24 AM (2 weeks ago)
Author:
ishitaka
Message:

Update to version 3.10.7 from GitHub

Location:
xo-security
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • xo-security/tags/3.10.7/inc/class-xo-security.php

    r3402189 r3404569  
    786786            $loginfile     = $this->options['login_page_name'] . '.php';
    787787            $formated_path = '/' . ltrim( $path, '/' );
    788             $pattern       = '#/wp-login\.php(\?action=\w+(&key=[^&]+&login=[^&]+)?)?#';
    789 
    790             if ( '/wp-login.php' === $formated_path || preg_match( $pattern, $formated_path ) ) {
     788            $pattern       = '/wp-login\.php(\?|.+&)action=\w+';
     789
     790            if ( '/wp-login.php' === $formated_path || preg_match( '#' . $pattern . '#', $formated_path ) ) {
    791791                $url = $this->get_login_url( $url, $loginfile );
    792792            } elseif ( is_multisite() && ! is_subdomain_install() ) {
    793                 $blog              = get_site( $blog_id );
    794                 $multisite_pattern = '#' . preg_quote( $blog->path, '#' ) . 'wp-login\.php(\?action=\w+(&key=[^&]+&login=[^&]+)?)?#';
    795                 if ( $blog->path . 'wp-login.php' === $formated_path || preg_match( $multisite_pattern, $formated_path ) ) {
     793                $blog = get_site( $blog_id );
     794                if ( $blog->path . 'wp-login.php' === $formated_path || preg_match( '#' . $blog->path . $pattern . '#', $formated_path ) ) {
    796795                    $url = $this->get_login_url( $url, $loginfile );
    797796                }
  • xo-security/tags/3.10.7/readme.txt

    r3402189 r3404569  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 3.10.6
     7Stable tag: 3.10.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 3.10.7 =
     75
     76* Fixed a mistake in version 3.10.6.
     77
    7478= 3.10.6 =
    7579
  • xo-security/tags/3.10.7/xo-security.php

    r3402189 r3404569  
    1111 * Plugin URI:        https://xakuro.com/wordpress/xo-security/
    1212 * Description:       XO Security is a plugin to enhance login related security.
    13  * Version:           3.10.6
     13 * Version:           3.10.7
    1414 * Requires at least: 4.9
    1515 * Requires PHP:      5.6
     
    2525}
    2626
    27 define( 'XO_SECURITY_VERSION', '3.10.6' );
     27define( 'XO_SECURITY_VERSION', '3.10.7' );
    2828define( 'XO_SECURITY_URL', plugins_url( '', __FILE__ ) );
    2929define( 'XO_SECURITY_DIR', __DIR__ );
  • xo-security/trunk/inc/class-xo-security.php

    r3402189 r3404569  
    786786            $loginfile     = $this->options['login_page_name'] . '.php';
    787787            $formated_path = '/' . ltrim( $path, '/' );
    788             $pattern       = '#/wp-login\.php(\?action=\w+(&key=[^&]+&login=[^&]+)?)?#';
    789 
    790             if ( '/wp-login.php' === $formated_path || preg_match( $pattern, $formated_path ) ) {
     788            $pattern       = '/wp-login\.php(\?|.+&)action=\w+';
     789
     790            if ( '/wp-login.php' === $formated_path || preg_match( '#' . $pattern . '#', $formated_path ) ) {
    791791                $url = $this->get_login_url( $url, $loginfile );
    792792            } elseif ( is_multisite() && ! is_subdomain_install() ) {
    793                 $blog              = get_site( $blog_id );
    794                 $multisite_pattern = '#' . preg_quote( $blog->path, '#' ) . 'wp-login\.php(\?action=\w+(&key=[^&]+&login=[^&]+)?)?#';
    795                 if ( $blog->path . 'wp-login.php' === $formated_path || preg_match( $multisite_pattern, $formated_path ) ) {
     793                $blog = get_site( $blog_id );
     794                if ( $blog->path . 'wp-login.php' === $formated_path || preg_match( '#' . $blog->path . $pattern . '#', $formated_path ) ) {
    796795                    $url = $this->get_login_url( $url, $loginfile );
    797796                }
  • xo-security/trunk/readme.txt

    r3402189 r3404569  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 3.10.6
     7Stable tag: 3.10.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 3.10.7 =
     75
     76* Fixed a mistake in version 3.10.6.
     77
    7478= 3.10.6 =
    7579
  • xo-security/trunk/xo-security.php

    r3402189 r3404569  
    1111 * Plugin URI:        https://xakuro.com/wordpress/xo-security/
    1212 * Description:       XO Security is a plugin to enhance login related security.
    13  * Version:           3.10.6
     13 * Version:           3.10.7
    1414 * Requires at least: 4.9
    1515 * Requires PHP:      5.6
     
    2525}
    2626
    27 define( 'XO_SECURITY_VERSION', '3.10.6' );
     27define( 'XO_SECURITY_VERSION', '3.10.7' );
    2828define( 'XO_SECURITY_URL', plugins_url( '', __FILE__ ) );
    2929define( 'XO_SECURITY_DIR', __DIR__ );
Note: See TracChangeset for help on using the changeset viewer.