Skip to content

Commit c479c76

Browse files
committed
Merge branch 'master' into develop
2 parents 51f63cd + a3bdf78 commit c479c76

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

includes/class-cpt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct() {
3737
* @since 2.3.0
3838
*/
3939
public static function register_post_type() {
40-
$slug = \wzkb_get_option( 'kb_slug', 'knowledgebase' );
40+
$slug = sanitize_title( \wzkb_get_option( 'kb_slug', 'knowledgebase' ) );
4141
$archives = defined( 'WZKB_DISABLE_ARCHIVE' ) && WZKB_DISABLE_ARCHIVE ? false : $slug;
4242
$rewrite = defined( 'WZKB_DISABLE_REWRITE' ) && WZKB_DISABLE_REWRITE ? false : array(
4343
'slug' => $slug,

knowledgebase.php

100755100644
File mode changed.

readme.txt

100755100644
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
121121

122122
== Upgrade Notice ==
123123

124-
= 2.3.1 =
125-
Fixed security issue where arguments passed to the shortcodes were not properly sanitized.
124+
= 2.3.2 =
125+
Fixed security issue where Knowledge Base slug in settings was not sanitized.
126126

127127
== Changelog ==
128128

@@ -151,6 +151,11 @@ Fixed security issue where arguments passed to the shortcodes were not properly
151151
* And other similar class name changes
152152
* If you have custom CSS targeting these classes, you'll need to update your selectors
153153

154+
= 2.3.2 =
155+
156+
* Bug fixes:
157+
* Fixed security issue where Knowledge Base slug in settings was not sanitized.
158+
154159
= 2.3.1 =
155160

156161
* Bug fixes:

0 commit comments

Comments
 (0)