File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments