Changeset 3479884
- Timestamp:
- 03/11/2026 09:44:38 AM (3 weeks ago)
- Location:
- cloudsecure-wp-security/trunk
- Files:
-
- 4 edited
-
cloudsecure-wp.php (modified) (1 diff)
-
modules/captcha.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
really-simple-captcha/really-simple-captcha.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cloudsecure-wp-security/trunk/cloudsecure-wp.php
r3472323 r3479884 14 14 * Plugin URI: https://wpplugin.cloudsecure.ne.jp/cloudsecure_wp_security 15 15 * Description: 管理画面とログインURLをサイバー攻撃から守る、安心の国産・日本語対応プラグインです。かんたんな設定を行うだけで、不正アクセスや不正ログインからあなたのWordPressを保護し、セキュリティが向上します。また、各機能の有効・無効(ON・OFF)や設定などをお好みにカスタマイズし、いつでも保護状態を管理できます。 16 * Version: 1.4. 316 * Version: 1.4.4 17 17 * Requires PHP: 7.1 18 18 * Author: XServer Inc. -
cloudsecure-wp-security/trunk/modules/captcha.php
r3101467 r3479884 277 277 * @return bool 278 278 */ 279 public function check_captcha( ): bool {279 public function check_captcha( bool $remove_on_failure = true ): bool { 280 280 if ( ! empty( $_POST ) && check_admin_referer( $this->get_feature_key() . '_csrf', 'cloudsecurewp_captcha_wpnonce' ) ) { 281 return $this->captcha->check( sanitize_text_field( $_POST[ self::PREFIX_FORM_NAME ] ?? '' ), sanitize_text_field( $_POST[ self::CAPTCHA_FORM_NAME ] ?? '' ) );281 return $this->captcha->check( sanitize_text_field( $_POST[ self::PREFIX_FORM_NAME ] ?? '' ), sanitize_text_field( $_POST[ self::CAPTCHA_FORM_NAME ] ?? '' ), $remove_on_failure ); 282 282 } 283 283 … … 329 329 */ 330 330 public function preprocess_comment( $comment_data ) { 331 if ( is_admin() || $this->check_captcha( ) ) {331 if ( is_admin() || $this->check_captcha( false ) ) { 332 332 return $comment_data; 333 333 } -
cloudsecure-wp-security/trunk/readme.txt
r3472323 r3479884 4 4 Requires at least: 5.3.15 5 5 Tested up to: 6.9 6 Stable tag: 1.4. 36 Stable tag: 1.4.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 107 107 == Changelog == 108 108 109 = 1.4.4 = 110 * 画像認証追加機能に関する不具合を修正 111 109 112 = 1.4.3 = 110 113 * 事業移管のため作者情報をエックスサーバー株式会社に変更 -
cloudsecure-wp-security/trunk/really-simple-captcha/really-simple-captcha.php
r3124889 r3479884 207 207 * @param string $prefix File prefix used for both files 208 208 * @param string $response CAPTCHA response 209 * @param bool $remove_on_failure Whether to remove temporary files on failure. Default true. 209 210 * 210 211 * @return bool Return true if the two match, otherwise return false. 211 212 */ 212 public function check( string $prefix, string $response ): bool {213 public function check( string $prefix, string $response, bool $remove_on_failure = true ): bool { 213 214 if ( 0 === strlen( $prefix ) ) { 214 215 return false; … … 229 230 230 231 if ( hash_equals( $hash, hash_hmac( 'md5', $response, $salt ) ) ) { 232 $this->remove( $prefix ); 231 233 return true; 232 234 } 233 235 } 234 236 237 if ( $remove_on_failure ) { 238 $this->remove( $prefix ); 239 } 235 240 return false; 236 241 }
Note: See TracChangeset
for help on using the changeset viewer.