Skip to content

Commit

Permalink
Fixed possible placement rules XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mgibbs189 committed May 10, 2023
1 parent 23a5b2c commit 13ac9ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cfs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Custom Field Suite
Description: Visually add custom fields to your WordPress edit pages.
Version: 2.6.2.1
Version: 2.6.3
Author: Matt Gibbs
Text Domain: cfs
Domain Path: /languages/
Expand All @@ -21,7 +21,7 @@ class Custom_Field_Suite
function __construct() {

// setup variables
define( 'CFS_VERSION', '2.6.2.1' );
define( 'CFS_VERSION', '2.6.3' );
define( 'CFS_DIR', dirname( __FILE__ ) );
define( 'CFS_URL', plugins_url( '', __FILE__ ) );

Expand Down
2 changes: 1 addition & 1 deletion includes/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function cfs_column_content( $column_name, $post_id ) {
$values = $temp;
}

echo "<div><strong>$label</strong> " . $operator . ' ' . implode( ', ', $values ) . '</div>';
echo "<div><strong>$label</strong> " . $operator . ' ' . esc_html( implode( ', ', $values ) ) . '</div>';
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: mgibbs189
Tags: custom fields, fields, postmeta, relationship, repeater, file upload
Requires at least: 5.0
Tested up to: 6.0.1
Tested up to: 6.2
Stable tag: trunk
License: GPLv2

Expand Down Expand Up @@ -46,6 +46,9 @@ Custom Field Suite (CFS) lets you add custom fields to your posts. It's lightwei

== Changelog ==

= 2.6.3 =
* Fixed: possible placement rules XSS (props Patchstack)

= 2.6.2.1 =
* Confirmed 6.0.1 compatibility

Expand Down

0 comments on commit 13ac9ea

Please sign in to comment.