Changeset 3402189
- Timestamp:
- 11/25/2025 04:30:15 AM (3 weeks ago)
- Location:
- xo-security
- Files:
-
- 6 edited
- 1 copied
-
tags/3.10.6 (copied) (copied from xo-security/trunk)
-
tags/3.10.6/inc/class-xo-security.php (modified) (2 diffs)
-
tags/3.10.6/readme.txt (modified) (2 diffs)
-
tags/3.10.6/xo-security.php (modified) (2 diffs)
-
trunk/inc/class-xo-security.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/xo-security.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xo-security/tags/3.10.6/inc/class-xo-security.php
r3401240 r3402189 786 786 $loginfile = $this->options['login_page_name'] . '.php'; 787 787 $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 ) ) { 789 791 $url = $this->get_login_url( $url, $loginfile ); 790 792 } 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 ) ) { 793 796 $url = $this->get_login_url( $url, $loginfile ); 794 797 } … … 831 834 832 835 $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 ) { 834 837 $path = ABSPATH . $login_page_filename; 835 838 if ( ! file_exists( $path ) ) { -
xo-security/tags/3.10.6/readme.txt
r3401243 r3402189 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 3.10. 57 Stable tag: 3.10.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 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 74 78 = 3.10.5 = 75 79 -
xo-security/tags/3.10.6/xo-security.php
r3401240 r3402189 11 11 * Plugin URI: https://xakuro.com/wordpress/xo-security/ 12 12 * Description: XO Security is a plugin to enhance login related security. 13 * Version: 3.10. 513 * Version: 3.10.6 14 14 * Requires at least: 4.9 15 15 * Requires PHP: 5.6 … … 25 25 } 26 26 27 define( 'XO_SECURITY_VERSION', '3.10. 5' );27 define( 'XO_SECURITY_VERSION', '3.10.6' ); 28 28 define( 'XO_SECURITY_URL', plugins_url( '', __FILE__ ) ); 29 29 define( 'XO_SECURITY_DIR', __DIR__ ); -
xo-security/trunk/inc/class-xo-security.php
r3401240 r3402189 786 786 $loginfile = $this->options['login_page_name'] . '.php'; 787 787 $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 ) ) { 789 791 $url = $this->get_login_url( $url, $loginfile ); 790 792 } 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 ) ) { 793 796 $url = $this->get_login_url( $url, $loginfile ); 794 797 } … … 831 834 832 835 $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 ) { 834 837 $path = ABSPATH . $login_page_filename; 835 838 if ( ! file_exists( $path ) ) { -
xo-security/trunk/readme.txt
r3401243 r3402189 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 3.10. 57 Stable tag: 3.10.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 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 74 78 = 3.10.5 = 75 79 -
xo-security/trunk/xo-security.php
r3401240 r3402189 11 11 * Plugin URI: https://xakuro.com/wordpress/xo-security/ 12 12 * Description: XO Security is a plugin to enhance login related security. 13 * Version: 3.10. 513 * Version: 3.10.6 14 14 * Requires at least: 4.9 15 15 * Requires PHP: 5.6 … … 25 25 } 26 26 27 define( 'XO_SECURITY_VERSION', '3.10. 5' );27 define( 'XO_SECURITY_VERSION', '3.10.6' ); 28 28 define( 'XO_SECURITY_URL', plugins_url( '', __FILE__ ) ); 29 29 define( 'XO_SECURITY_DIR', __DIR__ );
Note: See TracChangeset
for help on using the changeset viewer.