Skip to content

Commit a705a53

Browse files
Fix HTML decode issue in JSON table chart #843
1 parent 402f03d commit a705a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public static final function get_features_for_license( $plan ) {
740740
*/
741741
public static function get_chart_data( $chart, $type, $run_filter = true ) {
742742
// change HTML entities
743-
$data = unserialize( html_entity_decode( $chart->post_content ) );
743+
$data = unserialize( html_entity_decode( htmlentities( $chart->post_content ) ) );
744744
$altered = array();
745745
foreach ( $data as $index => $array ) {
746746
if ( ! is_array( $index ) && is_array( $array ) ) {

0 commit comments

Comments
 (0)