Changeset 2626593 for shapepress-dsgvo
- Timestamp:
- 11/09/2021 09:58:06 AM (4 years ago)
- Location:
- shapepress-dsgvo/trunk
- Files:
-
- 12 edited
-
README.txt (modified) (2 diffs)
-
admin/js/sp-dsgvo-admin.js (modified) (2 diffs)
-
admin/tabs/v3/subject-access-request/page.php (modified) (1 diff)
-
admin/tabs/v3/super-unsubscribe/class-sp-dsgvo-dismiss-unsubscribe-action.php (modified) (1 diff)
-
admin/tabs/v3/super-unsubscribe/page.php (modified) (1 diff)
-
includes/class-sp-dsgvo-ajax-action.php (modified) (2 diffs)
-
includes/class-sp-dsgvo-embedding-api-base.php (modified) (1 diff)
-
includes/class-sp-dsgvo-integration-api-base.php (modified) (1 diff)
-
includes/helpers.php (modified) (1 diff)
-
public/shortcodes/subject-access-request/subject-access-request.php (modified) (1 diff)
-
public/shortcodes/super-unsubscribe/unsubscribe-form.php (modified) (1 diff)
-
sp-dsgvo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shapepress-dsgvo/trunk/README.txt
r2619292 r2626593 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.8.1 7 Stable tag: 3.1.2 67 Stable tag: 3.1.27 8 8 Requires PHP: 5.6.0 9 9 License: GPLv2 or later … … 204 204 205 205 == Changelog == 206 = 3.1.27 = 207 * improved sanitation and escaping 208 * fixed errors at unsubscribe and subject access request 209 206 210 = 3.1.26 = 207 211 * improved sanitation and escaping -
shapepress-dsgvo/trunk/admin/js/sp-dsgvo-admin.js
r2607104 r2626593 48 48 $('.unsubscribe-dismiss').on('click tap', function() { 49 49 var $this = $(this), 50 id = $this.attr('data-id'); 50 id = $this.attr('data-id'), 51 wpnonce = $this.attr('data-nonce'); 51 52 52 53 if(confirm(args.dismiss_confirm)) { … … 54 55 $.post( args.ajaxurl, { 55 56 action: 'admin-dismiss-unsubscribe', 56 id: id 57 id: id, 58 _wpnonce: wpnonce 57 59 }, 58 60 function( data ) { -
shapepress-dsgvo/trunk/admin/tabs/v3/subject-access-request/page.php
r2606205 r2626593 195 195 <td class="column-dismiss"> 196 196 <svg class="unsubscribe-dismiss" width="10" height="10" 197 data-id="<?php echo esc_attr($pendingRequest->ID); ?>" >197 data-id="<?php echo esc_attr($pendingRequest->ID); ?>" data-nonce="<?php echo wp_create_nonce(SPDSGVODismissUnsubscribeAction::getActionName() . '-nonce'); ?>"> 198 198 <line x1="0" y1="0" x2="10" y2="10"/> 199 199 <line x1="0" y1="10" x2="10" y2="0"/> -
shapepress-dsgvo/trunk/admin/tabs/v3/super-unsubscribe/class-sp-dsgvo-dismiss-unsubscribe-action.php
r2607332 r2626593 11 11 12 12 $id = $this->get('id'); 13 if (is_numeric( )) {13 if (is_numeric($id)) { 14 14 $postType = get_post_type($id ); 15 if ($postType == "subjectaccessrequest" ) {15 if ($postType == "subjectaccessrequest" || $postType == "spdsgvo_unsubscriber") { 16 16 wp_delete_post( $id ); 17 17 } -
shapepress-dsgvo/trunk/admin/tabs/v3/super-unsubscribe/page.php
r2606205 r2626593 319 319 <span class="wpk-services-table-name"><?php _e('Dismiss', 'shapepress-dsgvo') ?></span> 320 320 <svg class="unsubscribe-dismiss" width="10" height="10" 321 data-id="<?php echo esc_attr($confirmedRequest->ID); ?>" >321 data-id="<?php echo esc_attr($confirmedRequest->ID); ?>" data-nonce="<?php echo wp_create_nonce(SPDSGVODismissUnsubscribeAction::getActionName() . '-nonce'); ?>"> 322 322 <line x1="0" y1="0" x2="10" y2="10"/> 323 323 <line x1="0" y1="10" x2="10" y2="0"/> -
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-ajax-action.php
r2619292 r2626593 178 178 179 179 if(is_array($_REQUEST[$key])){ 180 return $this->recursive_sanitize_text_field($_REQUEST[$key]);180 return spDsgvo_recursive_sanitize_text_field($_REQUEST[$key]); 181 181 } 182 182 … … 227 227 } 228 228 229 /** 230 * Recursive sanitation for an array 231 * @param $array 232 * @return mixed 233 */ 234 function recursive_sanitize_text_field($array) { 235 foreach ( $array as $key => &$value ) { 236 if ( is_array( $value ) ) { 237 $value = recursive_sanitize_text_field($value); 238 } 239 else { 240 $value = sanitize_text_field( $value ); 241 } 242 } 243 244 return $array; 245 } 229 246 230 247 231 public function returnBack(){ -
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-embedding-api-base.php
r2606205 r2626593 154 154 155 155 // the settings are stored in an array like "integration-slug" => '0' 156 $integrationSettings = json_decode(sanitize_text_field(stripslashes($_COOKIE[SPDSGVOConstants::CCOKIE_NAME])));156 $integrationSettings = (json_decode(stripslashes($_COOKIE[SPDSGVOConstants::CCOKIE_NAME]))); 157 157 // check if it is a class and has the property 158 158 if ($integrationSettings instanceof stdClass == false || !property_exists($integrationSettings, 'integrations')) return false; 159 159 160 $enabledIntegrations = filter_var_array($integrationSettings->integrations,FILTER_SANITIZE_ENCODED); 160 $integrationSettingsArray = (array)$integrationSettings; 161 $integrationSettingsArray = spDsgvo_recursive_sanitize_text_field($integrationSettingsArray); 162 163 $enabledIntegrations = $integrationSettingsArray['integrations'];//filter_var_array($integrationSettings->integrations,FILTER_SANITIZE_ENCODED); 161 164 $integrationSettings = null; // we only need here the array of enabled integrations, which we sanitze and filter in the above lines. the rest gets nulled 162 165 if ($enabledIntegrations == false || isset($enabledIntegrations) == false) return false; -
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-integration-api-base.php
r2606205 r2626593 223 223 224 224 // the settings are stored in an array like "integration-slug" => '0' 225 $integrationSettings = json_decode(sanitize_text_field(stripslashes($_COOKIE[SPDSGVOConstants::CCOKIE_NAME])));225 $integrationSettings = sanitize_text_field(json_decode(stripslashes($_COOKIE[SPDSGVOConstants::CCOKIE_NAME]))); 226 226 // check if it is a class and has the property 227 227 if ($integrationSettings instanceof stdClass == false || !property_exists($integrationSettings, 'integrations')) return false; -
shapepress-dsgvo/trunk/includes/helpers.php
r2606205 r2626593 237 237 } 238 238 239 /** 240 * Recursive sanitation for an array 241 * @param $array 242 * @return mixed 243 */ 244 if (! function_exists('spDsgvo_recursive_sanitize_text_field')) { 245 function spDsgvo_recursive_sanitize_text_field( $array ) { 246 foreach ( $array as $key => &$value ) { 247 if ( is_array( $value ) ) { 248 $value = recursive_sanitize_text_field( $value ); 249 } else { 250 $value = sanitize_text_field( $value ); 251 } 252 } 253 254 return $array; 255 } 256 } 257 239 258 if (! function_exists('spDsgvoWriteInput')) { 240 259 /** -
shapepress-dsgvo/trunk/public/shortcodes/subject-access-request/subject-access-request.php
r2606205 r2626593 14 14 ob_start(); 15 15 ?> 16 <?php if(isset($_REQUEST['result']) && santize_text_field($_REQUEST['result']) === 'success'): ?>16 <?php if(isset($_REQUEST['result']) && (sanitize_text_field($_REQUEST['result'])) === 'success'): ?> 17 17 18 18 <p class="sp-dsgvo sar-success-message"><?php _e('Your request has been created','shapepress-dsgvo')?> <br> <?php _e('You will receive an email from us with a current extract of your data stored with us.','shapepress-dsgvo')?></p> -
shapepress-dsgvo/trunk/public/shortcodes/super-unsubscribe/unsubscribe-form.php
r2606205 r2626593 15 15 ob_start(); 16 16 ?> 17 <?php if(isset($_REQUEST['result']) && santize_text_field($_REQUEST['result']) === 'success'): ?>17 <?php if(isset($_REQUEST['result']) && (sanitize_text_field($_REQUEST['result'])) === 'success'): ?> 18 18 19 19 <p class="sp-dsgvo us-success-message"><?php _e('Request sent successfully. You will receive an email in a few minutes.','shapepress-dsgvo')?></p> 20 20 21 <?php elseif(isset($_REQUEST['result']) && san tize_text_field($_REQUEST['result']) === 'confirmed'): ?>21 <?php elseif(isset($_REQUEST['result']) && sanitize_text_field($_REQUEST['result']) === 'confirmed'): ?> 22 22 23 23 <p class="sp-dsgvo us-success-message"><?php _e('Request successfully completed. Your data has been completely deleted.','shapepress-dsgvo')?></p> -
shapepress-dsgvo/trunk/sp-dsgvo.php
r2619292 r2626593 17 17 * Plugin URI: https://legalweb.io 18 18 * Description: WP DSGVO Tools (GDPR) help you to fulfill the GDPR (DGSVO) compliance guidance (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">GDPR</a>) 19 * Version: 3.1.2 619 * Version: 3.1.27 20 20 * Author: legalweb 21 21 * Author URI: https://www.legalweb.io … … 29 29 } 30 30 31 define('sp_dsgvo_VERSION', '3.1.2 6');31 define('sp_dsgvo_VERSION', '3.1.27'); 32 32 define('sp_dsgvo_NAME', 'sp-dsgvo'); 33 33 define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
Note: See TracChangeset
for help on using the changeset viewer.