Plugin Directory

Changeset 3169708


Ignore:
Timestamp:
10/16/2024 02:45:14 AM (17 months ago)
Author:
gravityview
Message:

Version 1.4.4

Location:
gravity-forms-zero-spam/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gravity-forms-zero-spam/trunk/gravityforms-zero-spam-form-settings.php

    r3166697 r3169708  
    477477        if ( $success ) {
    478478            $this->log_debug( __METHOD__ . '(): Spam report email sent successfully.' );
    479             update_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp' ) );
     479            update_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp', 1 ) );
    480480        } else {
    481481            $this->log_error( __METHOD__ . '(): Spam report email failed to send.' );
     
    527527    private function get_last_report_date( $date_format = 'Y-m-d' ) {
    528528
    529         $last_report_timestamp = get_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp' ) );
    530 
    531         return date( $date_format, $last_report_timestamp );
     529        $last_report_timestamp = get_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp', 1 ) );
     530
     531        return gmdate( $date_format, $last_report_timestamp );
    532532    }
    533533
  • gravity-forms-zero-spam/trunk/gravityforms-zero-spam.php

    r3166697 r3169708  
    44 * Plugin URI:        https://www.gravitykit.com?utm_source=plugin&utm_campaign=zero-spam&utm_content=pluginuri
    55 * Description:       Enhance Gravity Forms to include effective anti-spam measures—without using a CAPTCHA.
    6  * Version:           1.4.3
     6 * Version:           1.4.4
    77 * Author:            GravityKit
    88 * Author URI:        https://www.gravitykit.com?utm_source=plugin&utm_campaign=zero-spam&utm_content=authoruri
     
    8989
    9090        // Add the Zero Spam key to the partial entry if it's available in the POST data.
    91         $submission['partial_entry']['gf_zero_spam_key'] = rgpost( 'gf_zero_spam_key' );;
     91        $submission['partial_entry']['gf_zero_spam_key'] = rgpost( 'gf_zero_spam_key' );
    9292
    9393        return wp_json_encode( $submission );
     
    163163    public function check_key_field( $is_spam = false, $form = array(), $entry = array() ) {
    164164
     165        // If the user can edit entries, they're not a spammer. It may be spam, but it's their prerogative.
     166        if ( GFCommon::current_user_can_any( 'gravityforms_edit_entries' ) ) {
     167            return false;
     168        }
     169
    165170        $should_check_key_field = ! GFCommon::is_preview();
    166171
     
    195200        }
    196201
    197         if ( ! isset( $_POST['gf_zero_spam_key'] ) || html_entity_decode( $_POST['gf_zero_spam_key'] ) !== $this->get_key() ) {
     202        if ( ! isset( $_POST['gf_zero_spam_key'] ) || html_entity_decode( sanitize_text_field( wp_unslash( $_POST['gf_zero_spam_key'] ) ) ) !== $this->get_key() ) {
    198203            add_action( 'gform_entry_created', array( $this, 'add_entry_note' ) );
    199204
  • gravity-forms-zero-spam/trunk/readme.txt

    r3166699 r3169708  
    11=== Gravity Forms Zero Spam ===
    22Contributors: gravityview
    3 Tags: gravityforms, gravity forms, anti-spam, antispam, spam, spam-blocker, spambot, spammer, add-ons, honeypot
    4 Requires at least: 4.6
     3Tags: gravity forms, spam, captcha, honeypot, anti-spam
     4Requires at least: 4.7
    55Tested up to: 6.6.2
    6 Stable tag: 1.4.3
     6Stable tag: 1.4.4
    77Requires PHP: 5.2.6
    88License: GPLv2 or later
     
    115115== Changelog ==
    116116
    117 = 1.4.3 on October 10, 2024 =
    118 
    119 * Tweak: Changed the text domain for strings to `gravity-forms-zero-spam` to match the plugin slug
    120 
    121 = 1.4.2 on October 10, 2024 =
     117= 1.4.4 on October 15, 2024 =
     118
     119* Improved: Submissions by users who have the capability to edit Gravity Forms entries are no longer processed by Zero Spam (thanks for the idea, @richardjb62!)
     120* Fixed: Use GMT time for spam summary email reports to make sure the report is sent at the correct time
     121
     122= 1.4.2 & 1.4.3 on October 10, 2024 =
    122123
    123124* Improved: Sanitized form ID in JavaScript
    124 * Fixed: Missing text domain for translation
     125* Modified: Changed the text domain for strings to `gravity-forms-zero-spam` to match the plugin slug
     126* Fixed: Added missing Text Domain header for translation
    125127
    126128= 1.4.1 on November 10, 2023 =
Note: See TracChangeset for help on using the changeset viewer.