Plugin Directory

Changeset 1202224


Ignore:
Timestamp:
07/20/2015 11:43:27 AM (11 years ago)
Author:
adeptplus
Message:

Fix error where Captcha could be bypassed by disabling Javascript

Location:
no-captcha-recaptcha/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • no-captcha-recaptcha/trunk/comment-form.php

    r1041394 r1202224  
    6161    public static function validate_captcha_comment_field( $commentdata ) {
    6262
    63         if ( isset( $_POST['g-recaptcha-response'] ) && ! (self::captcha_verification()) ) {
     63        if ( ! isset( $_POST['g-recaptcha-response'] ) || ! (self::captcha_verification()) ) {
    6464            self::$captcha_error = 'failed';
    6565        }
  • no-captcha-recaptcha/trunk/login.php

    r1041394 r1202224  
    2525    public static function validate_captcha( $user, $password ) {
    2626
    27         if ( isset( $_POST['g-recaptcha-response'] ) && ! self::captcha_verification() ) {
     27        if ( ! isset( $_POST['g-recaptcha-response'] ) || ! self::captcha_verification() ) {
    2828            return new WP_Error( 'empty_captcha', self::$error_message );
    2929        }
  • no-captcha-recaptcha/trunk/no-captcha-recaptcha.php

    r1042401 r1202224  
    55Plugin URI: http://w3guy.com
    66Description: Protect WordPress login, registration and comment form from spam with the new No CAPTCHA reCAPTCHA
    7 Version: 1.0.1
     7Version: 1.0.2
    88Author: Agbonghama Collins
    99Author URI: http://w3guy.com
  • no-captcha-recaptcha/trunk/readme.txt

    r1047195 r1202224  
    11=== Plugin Name ===
    2 Contributors: adeptplus
     2Contributors: collizo4sky, adeptplus
    33Donate link: https://flattr.com/submit/auto?user_id=tech4sky&url=http%3A%2F%2Fw3guy.com
    44Tags: comments, spam, login, registration, captcha, recaptcha, spammers, bot
    55Requires at least: 3.4
    66Tested up to: 4.0.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
    47 = 1.0 =
     47= 1.0.2 =
     48* Fix error where Captcha could be bypassed by disabling Javascript
     49
     50= 1.0.1 =
    4851* Fixed header already sent error
    4952
  • no-captcha-recaptcha/trunk/registration.php

    r1041394 r1202224  
    2525     */
    2626    public static function validate_captcha_registration_field( $errors, $sanitized_user_login, $user_email ) {
    27         if ( isset( $_POST['g-recaptcha-response'] ) && ! self::captcha_verification() ) {
     27        if ( ! isset( $_POST['g-recaptcha-response'] ) || ! self::captcha_verification() ) {
    2828            $errors->add( 'failed_verification', self::$error_message );
    2929        }
Note: See TracChangeset for help on using the changeset viewer.