WP DSGVO Tools - Version 3.1.26

Version Description

  • improved sanitation and escaping
Download this release

Release Info

Developer legalweb
Plugin Icon 128x128 WP DSGVO Tools
Version 3.1.26
Comparing to
See all releases

Code changes from version 3.1.25 to 3.1.26

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://legalweb.io
4
  Tags: gdpr, dsgvo, datenschutz, privacy, privacy policy, imprint, impressum, wordpress, compliance, privacy, woocommerce, law
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8.1
7
- Stable tag: 3.1.25
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -203,6 +203,9 @@ Just install via WordPress plugin feature or upload zip and activate it.
203
 
204
 
205
  == Changelog ==
 
 
 
206
  = 3.1.25 =
207
  * fixed error when saving google tag manager settings
208
 
@@ -223,16 +226,6 @@ Just install via WordPress plugin feature or upload zip and activate it.
223
  * translation updates
224
  * fixed path of roboto font
225
 
226
- = 3.1.20 =
227
- * translation updates
228
-
229
- = 3.1.19 =
230
- * bugfixes
231
-
232
- = 3.1.18 =
233
- * improved custom fonts loading (option to disable it)
234
- * hide emtpy owner texts in imprint
235
-
236
  == Upgrade Notice ==
237
  = 3.1.10 =
238
  * Important if you upgrade from V2: In V3 a lot of important changes have been made. Please check all your settings after updating to ensure correct functionality
4
  Tags: gdpr, dsgvo, datenschutz, privacy, privacy policy, imprint, impressum, wordpress, compliance, privacy, woocommerce, law
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8.1
7
+ Stable tag: 3.1.26
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
203
 
204
 
205
  == Changelog ==
206
+ = 3.1.26 =
207
+ * improved sanitation and escaping
208
+
209
  = 3.1.25 =
210
  * fixed error when saving google tag manager settings
211
 
226
  * translation updates
227
  * fixed path of roboto font
228
 
 
 
 
 
 
 
 
 
 
 
229
  == Upgrade Notice ==
230
  = 3.1.10 =
231
  * Important if you upgrade from V2: In V3 a lot of important changes have been made. Please check all your settings after updating to ensure correct functionality
includes/class-sp-dsgvo-ajax-action.php CHANGED
@@ -177,7 +177,7 @@ abstract class SPDSGVOAjaxAction{
177
  $result = null;
178
 
179
  if(is_array($_REQUEST[$key])){
180
- return $_REQUEST[$key];
181
  }
182
 
183
  if ($sanitizeMethod != 'wp_kses_scripts') {
@@ -226,6 +226,24 @@ abstract class SPDSGVOAjaxAction{
226
 
227
  }
228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  public function returnBack(){
230
  if(isset($_SERVER['HTTP_REFERER'])){
231
  header('Location: '. $_SERVER['HTTP_REFERER']);
177
  $result = null;
178
 
179
  if(is_array($_REQUEST[$key])){
180
+ return $this->recursive_sanitize_text_field($_REQUEST[$key]);
181
  }
182
 
183
  if ($sanitizeMethod != 'wp_kses_scripts') {
226
 
227
  }
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
+ }
246
+
247
  public function returnBack(){
248
  if(isset($_SERVER['HTTP_REFERER'])){
249
  header('Location: '. $_SERVER['HTTP_REFERER']);
sp-dsgvo.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP DSGVO Tools (GDPR)
17
  * Plugin URI: https://legalweb.io
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.25
20
  * Author: legalweb
21
  * Author URI: https://www.legalweb.io
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -28,7 +28,7 @@ if (! defined('WPINC')) {
28
  die();
29
  }
30
 
31
- define('sp_dsgvo_VERSION', '3.1.25');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
34
  define('sp_dsgvo_LEGAL_TEXTS_MIN_VERSION', '1579021814');
16
  * Plugin Name: WP DSGVO Tools (GDPR)
17
  * Plugin URI: https://legalweb.io
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.26
20
  * Author: legalweb
21
  * Author URI: https://www.legalweb.io
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
28
  die();
29
  }
30
 
31
+ define('sp_dsgvo_VERSION', '3.1.26');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
34
  define('sp_dsgvo_LEGAL_TEXTS_MIN_VERSION', '1579021814');