Plugin Directory

Changeset 3479884


Ignore:
Timestamp:
03/11/2026 09:44:38 AM (3 weeks ago)
Author:
cloudsecure
Message:

画像認証追加機能に関する不具合を修正

Location:
cloudsecure-wp-security/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cloudsecure-wp-security/trunk/cloudsecure-wp.php

    r3472323 r3479884  
    1414 * Plugin URI:    https://wpplugin.cloudsecure.ne.jp/cloudsecure_wp_security
    1515 * Description:   管理画面とログインURLをサイバー攻撃から守る、安心の国産・日本語対応プラグインです。かんたんな設定を行うだけで、不正アクセスや不正ログインからあなたのWordPressを保護し、セキュリティが向上します。また、各機能の有効・無効(ON・OFF)や設定などをお好みにカスタマイズし、いつでも保護状態を管理できます。
    16  * Version:       1.4.3
     16 * Version:       1.4.4
    1717 * Requires PHP:  7.1
    1818 * Author:        XServer Inc.
  • cloudsecure-wp-security/trunk/modules/captcha.php

    r3101467 r3479884  
    277277     * @return bool
    278278     */
    279     public function check_captcha(): bool {
     279    public function check_captcha( bool $remove_on_failure = true ): bool {
    280280        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 );
    282282        }
    283283
     
    329329     */
    330330    public function preprocess_comment( $comment_data ) {
    331         if ( is_admin() || $this->check_captcha() ) {
     331        if ( is_admin() || $this->check_captcha( false ) ) {
    332332            return $comment_data;
    333333        }
  • cloudsecure-wp-security/trunk/readme.txt

    r3472323 r3479884  
    44Requires at least: 5.3.15
    55Tested up to: 6.9
    6 Stable tag: 1.4.3
     6Stable tag: 1.4.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    107107== Changelog ==
    108108
     109= 1.4.4 =
     110* 画像認証追加機能に関する不具合を修正
     111
    109112= 1.4.3 =
    110113* 事業移管のため作者情報をエックスサーバー株式会社に変更
  • cloudsecure-wp-security/trunk/really-simple-captcha/really-simple-captcha.php

    r3124889 r3479884  
    207207     * @param string $prefix File prefix used for both files
    208208     * @param string $response CAPTCHA response
     209     * @param bool   $remove_on_failure Whether to remove temporary files on failure. Default true.
    209210     *
    210211     * @return bool Return true if the two match, otherwise return false.
    211212     */
    212     public function check( string $prefix, string $response ): bool {
     213    public function check( string $prefix, string $response, bool $remove_on_failure = true ): bool {
    213214        if ( 0 === strlen( $prefix ) ) {
    214215            return false;
     
    229230
    230231            if ( hash_equals( $hash, hash_hmac( 'md5', $response, $salt ) ) ) {
     232                $this->remove( $prefix );
    231233                return true;
    232234            }
    233235        }
    234236
     237        if ( $remove_on_failure ) {
     238            $this->remove( $prefix );
     239        }
    235240        return false;
    236241    }
Note: See TracChangeset for help on using the changeset viewer.