Skip to content

Commit edb166d

Browse files
authored
Merge pull request #15 from codebard/2_1_9
2.1.9
2 parents 6a5e465 + b3b1d6a commit edb166d

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: CodeBard's Patron Button and Widgets for Patreon
44
Plugin URI: https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/
55
Description: Patreon Patron Buttons, Widgets and Patreon Functions
6-
Version: 2.1.8
6+
Version: 2.1.9
77
Author: CodeBard
88
Author URI: http://codebard.com
99
Text Domain: cb_p6

plugin/includes/default_internal_vars.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'id' => 'cb_p6',
1111
'plugin_id' => 'patron-button-and-widgets-by-codebard',
1212
'prefix' => 'cb_p6_',
13-
'version' => '2.1.8',
13+
'version' => '2.1.9',
1414
'plugin_name' => 'CodeBard\'s Patron Button and Widgets for Patreon',
1515

1616
'callable_from_request' => array(

plugin/includes/setup_modal.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131

3232
}
3333

34-
$_REQUEST['site_account'] = sanitize_text_field($_REQUEST['site_account']);
34+
// Quotes, tags are not allowable or usable in site account names or urls
35+
$_REQUEST['site_account'] = str_replace('"', "", $_REQUEST['site_account']);
36+
$_REQUEST['site_account'] = str_replace("'", "", $_REQUEST['site_account']);
37+
$_REQUEST['site_account'] = str_replace("<", "", $_REQUEST['site_account']);
38+
$_REQUEST['site_account'] = str_replace(">", "", $_REQUEST['site_account']);
39+
// Extra sanitization
40+
$_REQUEST['site_account'] = esc_attr(sanitize_text_field($_REQUEST['site_account']));
41+
3542
?>
3643

3744
<form method="post" action="<?php echo $this->internal['admin_url'].'admin.php?page=settings_'.$this->internal['id']; ?>">

readme.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Tags: plugins, patreon, widgets, crowdfunding, crowdfund, crowd fund, crowd fund
77
License: GPL
88
Requires at least: 4.0
99
Tested up to: 6.2
10-
Stable Tag: 2.1.8
10+
Stable Tag: 2.1.9
1111

1212
Patron Button and Plugin allows you to add Patreon Buttons to your content and sidebars, along with offering other Patreon functions. Upgradable to Patron Plugin Pro with patron-only posts and powerful features.
1313

@@ -57,7 +57,11 @@ To be updated
5757
3. Patron Button Widget for Author
5858
4. Quick Start easy settings page
5959

60+
6061
== Upgrade Notice ==
62+
= 2.1.9 =
63+
64+
* Added extra sanitization for security
6165

6266
= 2.1.8 =
6367

@@ -190,6 +194,10 @@ To be updated
190194

191195
== Changelog ==
192196

197+
= 2.1.9 =
198+
199+
* Added extra sanitization for security
200+
193201
= 2.1.8 =
194202

195203
* Fixed a bug that could prevent WP cli used in managed hosting services from failing in certain tasks

0 commit comments

Comments
 (0)