Simple Banner - Version 2.10.9

Version Description

  • Bug fix in preview banner.
Download this release

Release Info

Developer rpetersen29
Plugin Icon 128x128 Simple Banner
Version 2.10.9
Comparing to
See all releases

Code changes from version 2.10.8 to 2.10.9

Files changed (2) hide show
  1. readme.txt +9 -3
  2. simple-banner.php +5 -5
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -118,8 +118,11 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
118
 
119
  == Changelog ==
120
 
 
 
 
121
  = 2.10.8 =
122
- * Bug security bug in admin panel.
123
 
124
  = 2.10.7 =
125
  * Bug fix for XSS.
@@ -289,8 +292,11 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
289
 
290
  == Upgrade Notice ==
291
 
 
 
 
292
  = 2.10.8 =
293
- * Bug security bug in admin panel.
294
 
295
  = 2.10.7 =
296
  * Bug fix for XSS.
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.9
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.9 =
122
+ * Bug fix in preview banner.
123
+
124
  = 2.10.8 =
125
+ * Fix security bug in admin panel.
126
 
127
  = 2.10.7 =
128
  * Bug fix for XSS.
292
 
293
  == Upgrade Notice ==
294
 
295
+ = 2.10.9 =
296
+ * Bug fix in preview banner.
297
+
298
  = 2.10.8 =
299
+ * Fix security bug in admin panel.
300
 
301
  = 2.10.7 =
302
  * Bug fix for XSS.
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.8
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
- * @version 2.10.8
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
- define ('VERSION', '2.10.8');
16
 
17
  register_activation_hook( __FILE__, 'simple_banner_activate' );
18
  function simple_banner_activate() {
@@ -936,8 +936,8 @@ function simple_banner_settings_page() {
936
  var style_custom_button_css = document.createElement('style');
937
 
938
  // Banner Text
939
- var hrefRegex = /href\=[\'\"](.*)[\'\"]/si;
940
- var scriptStyleRegex = /<(script|style)[^>]*?>.*?<\/(script|style)>/si;
941
  function stripBannerText(string) {
942
  let strippedString = string;
943
  while (strippedString.match(scriptStyleRegex)) {
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.9
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
+ * @version 2.10.9
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
+ define ('VERSION', '2.10.9');
16
 
17
  register_activation_hook( __FILE__, 'simple_banner_activate' );
18
  function simple_banner_activate() {
936
  var style_custom_button_css = document.createElement('style');
937
 
938
  // Banner Text
939
+ var hrefRegex = /href\=[\'\"](?!http|https)(.*?)[\'\"]/gsi;
940
+ var scriptStyleRegex = /<(script|style)[^>]*?>.*?<\/(script|style)>/gsi;
941
  function stripBannerText(string) {
942
  let strippedString = string;
943
  while (strippedString.match(scriptStyleRegex)) {