Skip to content

Commit 13408e7

Browse files
authored
Merge pull request #844 from Codeinwp/bugfix/843
Fix HTML decode issue in JSON table chart
2 parents cc05d8c + 1c445bf commit 13408e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
env: ["default","gutenberg", "gutenberg-datatable"]
15-
runs-on: ubuntu-16.04
15+
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: actions/setup-node@v2

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)