Plugin Directory

Changeset 3250631


Ignore:
Timestamp:
03/04/2025 07:03:50 PM (13 months ago)
Author:
mosparo
Message:

Fixed the incorrect spam handling in the Jet Form Builder module when the tokens are missing.

Location:
mosparo-integration
Files:
3 edited
60 copied

Legend:

Unmodified
Added
Removed
  • mosparo-integration/tags/1.13.3/mosparo-integration.php

    r3244107 r3250631  
    1515 * Author URI:        https://mosparo.io/
    1616 * License:           MIT
    17  * Version:           1.13.2
     17 * Version:           1.13.3
    1818 * Text Domain:       mosparo-integration
    1919 * Domain Path:       /languages
  • mosparo-integration/tags/1.13.3/readme.txt

    r3244107 r3250631  
    55Tested up to: 6.7.2
    66Requires PHP: 7.4
    7 Stable tag: 1.13.2
     7Stable tag: 1.13.3
    88License: MIT
    99
     
    105105== Changelog ==
    106106
     107= 1.13.3 =
     108*Release Date: 4th March 2025*
     109
     110* [Bugfix] Fixing the incorrect spam handling in the Jet Form Builder module when the tokens are missing.
     111
    107112= 1.13.2 =
    108113*Release Date: 20th February 2025*
  • mosparo-integration/tags/1.13.3/src/MosparoIntegration/Module/JetFormBuilder/Mosparo.php

    r3137575 r3250631  
    4848        // If the tokens are not available, the submission cannot be valid.
    4949        if (empty($submitToken) || empty($validationToken)) {
    50             $this->failed_validation = true;
    51             $this->validation_message = __('Submit or validation token is empty.', 'mosparo-integration');
    52 
    53             return;
     50            throw new Spam_Exception(
     51                'captcha_failed',
     52                __('Submit or validation token is empty.', 'mosparo-integration')
     53            );
    5454        }
    5555
  • mosparo-integration/trunk/mosparo-integration.php

    r3244107 r3250631  
    1515 * Author URI:        https://mosparo.io/
    1616 * License:           MIT
    17  * Version:           1.13.2
     17 * Version:           1.13.3
    1818 * Text Domain:       mosparo-integration
    1919 * Domain Path:       /languages
  • mosparo-integration/trunk/readme.txt

    r3244107 r3250631  
    55Tested up to: 6.7.2
    66Requires PHP: 7.4
    7 Stable tag: 1.13.2
     7Stable tag: 1.13.3
    88License: MIT
    99
     
    105105== Changelog ==
    106106
     107= 1.13.3 =
     108*Release Date: 4th March 2025*
     109
     110* [Bugfix] Fixing the incorrect spam handling in the Jet Form Builder module when the tokens are missing.
     111
    107112= 1.13.2 =
    108113*Release Date: 20th February 2025*
  • mosparo-integration/trunk/src/MosparoIntegration/Module/JetFormBuilder/Mosparo.php

    r3137575 r3250631  
    4848        // If the tokens are not available, the submission cannot be valid.
    4949        if (empty($submitToken) || empty($validationToken)) {
    50             $this->failed_validation = true;
    51             $this->validation_message = __('Submit or validation token is empty.', 'mosparo-integration');
    52 
    53             return;
     50            throw new Spam_Exception(
     51                'captcha_failed',
     52                __('Submit or validation token is empty.', 'mosparo-integration')
     53            );
    5454        }
    5555
Note: See TracChangeset for help on using the changeset viewer.