Changeset 2375366
- Timestamp:
- 09/04/2020 04:44:59 PM (5 years ago)
- Location:
- activecampaign-subscription-forms/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
activecampaign-subscription-forms/trunk/README.md
r2363354 r2375366 72 72 ## Changelog 73 73 74 ### 8.0.2 75 * Security fix to address CSRF vulnerability 76 * General fix to address browser warning for invalid cookie attribute 77 74 78 ### 8.0.1 75 79 * removing php 7 feature usage -
activecampaign-subscription-forms/trunk/activecampaign.php
r2363354 r2375366 5 5 Description: Allows you to add ActiveCampaign contact forms to any post, page, or sidebar. Also allows you to embed <a href="http://www.activecampaign.com/help/site-event-tracking/" target="_blank">ActiveCampaign site tracking</a> code in your pages. To get started, please activate the plugin and add your <a href="http://www.activecampaign.com/help/using-the-api/" target="_blank">API credentials</a> in the <a href="options-general.php?page=activecampaign">plugin settings</a>. 6 6 Author: ActiveCampaign 7 Version: 8.0. 17 Version: 8.0.2 8 8 Author URI: http://www.activecampaign.com 9 9 */ … … 49 49 ## version 8.0.0: Update ActiveCampaign forms embed to be compatible with Gutenberg editor, Resolve account connection UI bug 50 50 ## version 8.0.1: Removing php 7 feature usage 51 ## version: 8.0.2: Security fix to address CSRF vulnerability, general fix to address browser warning for invalid cookie attribute 51 52 52 53 define("ACTIVECAMPAIGN_URL", ""); … … 54 55 require_once(dirname(__FILE__) . "/activecampaign-api-php/ActiveCampaign.class.php"); 55 56 require_once(dirname(__FILE__) . "/activecampaign-form-block/activecampaign-form-block.php"); 57 require_once( ABSPATH . 'wp-includes/pluggable.php' ); 56 58 57 59 /** … … 134 136 135 137 if ($_POST["api_url"] && $_POST["api_key"]) { 138 //Nonce check for preventing CSRF 139 if (isset($_REQUEST["_wpnonce"])) { 140 $nonce = $_REQUEST["_wpnonce"]; 141 } else { 142 $nonce = wp_create_nonce( "invalid_nonce" ); 143 } 144 if ( ! wp_verify_nonce( $nonce, "activecampaign_save_settings" ) ) { 145 exit; 146 } 147 136 148 137 149 $ac = new ActiveCampaignWordPress($_POST["api_url"], $_POST["api_key"]); … … 511 523 512 524 <p><button type="submit" style="font-size: 16px; margin-top: 25px; padding: 10px;"><?php echo __($button_value, "menu-activecampaign"); ?></button></p> 513 514 </form> 525 <?php wp_nonce_field( 'activecampaign_save_settings' ); ?> 526 527 </form> 515 528 516 529 <?php -
activecampaign-subscription-forms/trunk/readme.txt
r2363354 r2375366 89 89 == Changelog == 90 90 91 = 8.0.2 = 92 * Security fix to address CSRF vulnerability 93 * General fix to address browser warning for invalid cookie attribute 94 91 95 = 8.0.1 = 92 96 * removing php 7 feature usage -
activecampaign-subscription-forms/trunk/site_tracking.js
r2054237 r2375366 13 13 function acEnableTracking() { 14 14 var expiration = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 30); 15 document.cookie = "ac_enable_tracking=1; expires= " + expiration + "; path=/";15 document.cookie = "ac_enable_tracking=1;samesite=none;secure; expires= " + expiration + "; path=/"; 16 16 pgo('process', 'allowTracking'); 17 17 }
Note: See TracChangeset
for help on using the changeset viewer.