Version Description
- Bug fix for XSS.
Download this release
Release Info
Developer | rpetersen29 |
Plugin | Simple Banner |
Version | 2.10.7 |
Comparing to | |
See all releases |
Code changes from version 2.10.6 to 2.10.7
- readme.txt +8 -2
- simple-banner.php +6 -5
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: rpetersen29
|
|
3 |
Donate link: https://www.paypal.me/rpetersenDev
|
4 |
Tags: banner, simple, top, bar, announcement, top bar, topbar, bulletin, notification, notice, cta, free
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.10.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -118,6 +118,9 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
121 |
= 2.10.6 =
|
122 |
* Bug fix for console error.
|
123 |
|
@@ -283,6 +286,9 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
|
|
283 |
|
284 |
== Upgrade Notice ==
|
285 |
|
|
|
|
|
|
|
286 |
= 2.10.6 =
|
287 |
* Bug fix for console error.
|
288 |
|
3 |
Donate link: https://www.paypal.me/rpetersenDev
|
4 |
Tags: banner, simple, top, bar, announcement, top bar, topbar, bulletin, notification, notice, cta, free
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.9.0
|
7 |
+
Stable tag: 2.10.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 2.10.7 =
|
122 |
+
* Bug fix for XSS.
|
123 |
+
|
124 |
= 2.10.6 =
|
125 |
* Bug fix for console error.
|
126 |
|
286 |
|
287 |
== Upgrade Notice ==
|
288 |
|
289 |
+
= 2.10.7 =
|
290 |
+
* Bug fix for XSS.
|
291 |
+
|
292 |
= 2.10.6 =
|
293 |
* Bug fix for console error.
|
294 |
|
simple-banner.php
CHANGED
@@ -3,16 +3,16 @@
|
|
3 |
* Plugin Name: Simple Banner
|
4 |
* Plugin URI: https://github.com/rpetersen29/simple-banner
|
5 |
* Description: Display a simple banner at the top of your website.
|
6 |
-
* Version: 2.10.
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
-
* @version 2.10.
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
-
define ('VERSION', '2.10.
|
16 |
|
17 |
register_activation_hook( __FILE__, 'simple_banner_activate' );
|
18 |
function simple_banner_activate() {
|
@@ -22,9 +22,10 @@ function simple_banner_activate() {
|
|
22 |
function get_stripped_option($string) {
|
23 |
$allowed_html = wp_kses_allowed_html('post');
|
24 |
$string_value = wp_kses(get_option( $string ), $allowed_html, []);
|
25 |
-
$
|
|
|
26 |
|
27 |
-
return $
|
28 |
}
|
29 |
|
30 |
// Disabled Pages/Posts functionns
|
3 |
* Plugin Name: Simple Banner
|
4 |
* Plugin URI: https://github.com/rpetersen29/simple-banner
|
5 |
* Description: Display a simple banner at the top of your website.
|
6 |
+
* Version: 2.10.7
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
+
* @version 2.10.7
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
+
define ('VERSION', '2.10.7');
|
16 |
|
17 |
register_activation_hook( __FILE__, 'simple_banner_activate' );
|
18 |
function simple_banner_activate() {
|
22 |
function get_stripped_option($string) {
|
23 |
$allowed_html = wp_kses_allowed_html('post');
|
24 |
$string_value = wp_kses(get_option( $string ), $allowed_html, []);
|
25 |
+
$stripped_string_1 = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string_value );
|
26 |
+
$stripped_string_2 = preg_replace( '@href\=[\'\"]javascript@si', 'href="https://', $stripped_string_1 );
|
27 |
|
28 |
+
return $stripped_string_2;
|
29 |
}
|
30 |
|
31 |
// Disabled Pages/Posts functionns
|