WF Cookie Consent - Version 1.0.1

Version Description

Bugfix: Unescaped HTML in text output

Download this release

Release Info

Developer wunderfarm
Plugin Icon 128x128 WF Cookie Consent
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

Files changed (3) hide show
  1. js/cookiechoices.js +7 -1
  2. readme.txt +5 -2
  3. wf-cookie-consent.php +1 -1
js/cookiechoices.js CHANGED
@@ -86,7 +86,7 @@
86
 
87
  }
88
 
89
- _showCookieConsent(data.cookieText, data.dismissText, data.linkText, data.linkHref, data.styles, false);
90
 
91
  }
92
 
@@ -239,6 +239,12 @@
239
  return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));
240
  }
241
 
 
 
 
 
 
 
242
  var exports = {};
243
  exports.showCookieBar = showCookieBar;
244
  exports.showCookieConsentBar = showCookieConsentBar;
86
 
87
  }
88
 
89
+ _showCookieConsent(htmlDecode(data.cookieText), htmlDecode(data.dismissText), htmlDecode(data.linkText), data.linkHref, data.styles, false);
90
 
91
  }
92
 
239
  return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));
240
  }
241
 
242
+ function htmlDecode(input){
243
+ var e = document.createElement('textarea');
244
+ e.innerHTML = input;
245
+ return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;
246
+ }
247
+
248
  var exports = {};
249
  exports.showCookieBar = showCookieBar;
250
  exports.showCookieConsentBar = showCookieConsentBar;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wunderfarm.com/
4
  Tags: compliance, cookie law, cookielaw, cookies, cookiebar, policy, bar, eu cookie law, cookie law banner, cookiechoices, eu privacy directive, privacy, privacy directive, cookie consent, cookieconsent, Multi language, WPML, polylang, responsive, admin, code, content, embed, google, html, integration, javascript, links, login, marketing, page, pages, plugin, simple, text, url, wordpress, law, lightweight,
5
  Requires at least: 3.0.1
6
  Tested up to: 4.6
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,8 +29,11 @@ WF Cookie Consent is the "wunderfarm-way" to show how your website complies with
29
 
30
  == Changelog ==
31
 
 
 
 
32
  = 1.0.0 =
33
- Improved performance loading by WF Cookie Consent later
34
 
35
  = 0.9.9 =
36
  Compatibility for Polylang Version 1.8
4
  Tags: compliance, cookie law, cookielaw, cookies, cookiebar, policy, bar, eu cookie law, cookie law banner, cookiechoices, eu privacy directive, privacy, privacy directive, cookie consent, cookieconsent, Multi language, WPML, polylang, responsive, admin, code, content, embed, google, html, integration, javascript, links, login, marketing, page, pages, plugin, simple, text, url, wordpress, law, lightweight,
5
  Requires at least: 3.0.1
6
  Tested up to: 4.6
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
 
30
  == Changelog ==
31
 
32
+ = 1.0.1 =
33
+ Bugfix: Unescaped HTML in text output
34
+
35
  = 1.0.0 =
36
+ Improved performance by loading WF Cookie Consent later
37
 
38
  = 0.9.9 =
39
  Compatibility for Polylang Version 1.8
wf-cookie-consent.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
- Version: 1.0.0
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
+ Version: 1.0.1
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm