Plugin Directory

Changeset 3402189


Ignore:
Timestamp:
11/25/2025 04:30:15 AM (3 weeks ago)
Author:
ishitaka
Message:

Update to version 3.10.6 from GitHub

Location:
xo-security
Files:
6 edited
1 copied

Legend:

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

    r3401240 r3402189  
    786786            $loginfile     = $this->options['login_page_name'] . '.php';
    787787            $formated_path = '/' . ltrim( $path, '/' );
    788             if ( '/wp-login.php' === $formated_path || preg_match( '#/wp-login\.php\?action=\w+#', $formated_path ) ) {
     788            $pattern       = '#/wp-login\.php(\?action=\w+(&key=[^&]+&login=[^&]+)?)?#';
     789
     790            if ( '/wp-login.php' === $formated_path || preg_match( $pattern, $formated_path ) ) {
    789791                $url = $this->get_login_url( $url, $loginfile );
    790792            } elseif ( is_multisite() && ! is_subdomain_install() ) {
    791                 $blog = get_site( $blog_id );
    792                 if ( $blog->path . 'wp-login.php' === $formated_path || preg_match( '#' . $blog->path . 'wp-login\.php\?action=\w+#', $formated_path ) ) {
     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 ) ) {
    793796                    $url = $this->get_login_url( $url, $loginfile );
    794797                }
     
    831834
    832835        $login_page_filename = ( isset( $this->options['login_page_name'] ) ? $this->options['login_page_name'] . '.php' : '' );
    833         if ( basename($wp->request) === $login_page_filename ) {
     836        if ( basename( $wp->request ) === $login_page_filename ) {
    834837            $path = ABSPATH . $login_page_filename;
    835838            if ( ! file_exists( $path ) ) {
  • xo-security/tags/3.10.6/readme.txt

    r3401243 r3402189  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 3.10.5
     7Stable tag: 3.10.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 3.10.6 =
     75
     76* Fixed an issue where the URL in the email sent when resetting a password was incorrect when changing the login page.
     77
    7478= 3.10.5 =
    7579
  • xo-security/tags/3.10.6/xo-security.php

    r3401240 r3402189  
    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.5
     13 * Version:           3.10.6
    1414 * Requires at least: 4.9
    1515 * Requires PHP:      5.6
     
    2525}
    2626
    27 define( 'XO_SECURITY_VERSION', '3.10.5' );
     27define( 'XO_SECURITY_VERSION', '3.10.6' );
    2828define( 'XO_SECURITY_URL', plugins_url( '', __FILE__ ) );
    2929define( 'XO_SECURITY_DIR', __DIR__ );
  • xo-security/trunk/inc/class-xo-security.php

    r3401240 r3402189  
    786786            $loginfile     = $this->options['login_page_name'] . '.php';
    787787            $formated_path = '/' . ltrim( $path, '/' );
    788             if ( '/wp-login.php' === $formated_path || preg_match( '#/wp-login\.php\?action=\w+#', $formated_path ) ) {
     788            $pattern       = '#/wp-login\.php(\?action=\w+(&key=[^&]+&login=[^&]+)?)?#';
     789
     790            if ( '/wp-login.php' === $formated_path || preg_match( $pattern, $formated_path ) ) {
    789791                $url = $this->get_login_url( $url, $loginfile );
    790792            } elseif ( is_multisite() && ! is_subdomain_install() ) {
    791                 $blog = get_site( $blog_id );
    792                 if ( $blog->path . 'wp-login.php' === $formated_path || preg_match( '#' . $blog->path . 'wp-login\.php\?action=\w+#', $formated_path ) ) {
     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 ) ) {
    793796                    $url = $this->get_login_url( $url, $loginfile );
    794797                }
     
    831834
    832835        $login_page_filename = ( isset( $this->options['login_page_name'] ) ? $this->options['login_page_name'] . '.php' : '' );
    833         if ( basename($wp->request) === $login_page_filename ) {
     836        if ( basename( $wp->request ) === $login_page_filename ) {
    834837            $path = ABSPATH . $login_page_filename;
    835838            if ( ! file_exists( $path ) ) {
  • xo-security/trunk/readme.txt

    r3401243 r3402189  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 3.10.5
     7Stable tag: 3.10.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 3.10.6 =
     75
     76* Fixed an issue where the URL in the email sent when resetting a password was incorrect when changing the login page.
     77
    7478= 3.10.5 =
    7579
  • xo-security/trunk/xo-security.php

    r3401240 r3402189  
    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.5
     13 * Version:           3.10.6
    1414 * Requires at least: 4.9
    1515 * Requires PHP:      5.6
     
    2525}
    2626
    27 define( 'XO_SECURITY_VERSION', '3.10.5' );
     27define( 'XO_SECURITY_VERSION', '3.10.6' );
    2828define( 'XO_SECURITY_URL', plugins_url( '', __FILE__ ) );
    2929define( 'XO_SECURITY_DIR', __DIR__ );
Note: See TracChangeset for help on using the changeset viewer.