diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 1d035cdeb..a50a3364f 100755 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -14,7 +14,7 @@ jobs: DOCKER_FILE: docker-compose.ci.yml strategy: fail-fast: false - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 417d580fa..595a1850e 100755 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -36,7 +36,7 @@ jobs: phpunit: name: PHPUnit - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 services: mysql: image: mysql:5.7 diff --git a/classes/Visualizer/Source.php b/classes/Visualizer/Source.php index afaf60201..03e7c99ad 100644 --- a/classes/Visualizer/Source.php +++ b/classes/Visualizer/Source.php @@ -429,7 +429,7 @@ private function _fetchSeriesFromEditableTable() { foreach ( $headers as $header ) { if ( ! empty( $types[ $header ] ) ) { $this->_series[] = array( - 'label' => $header, + 'label' => esc_html( wp_strip_all_tags( $header ) ), 'type' => $types[ $header ], ); } diff --git a/classes/Visualizer/Source/Csv.php b/classes/Visualizer/Source/Csv.php index 5fca4e435..461fd8dbf 100644 --- a/classes/Visualizer/Source/Csv.php +++ b/classes/Visualizer/Source/Csv.php @@ -97,7 +97,7 @@ private function _fetchSeries( &$handle ) { $labels[ $i ] = $this->toUTF8( $labels[ $i ] ); $this->_series[] = array( - 'label' => $labels[ $i ], + 'label' => esc_html( wp_strip_all_tags( $labels[ $i ] ) ), 'type' => isset( $types[ $i ] ) ? $types[ $i ] : $default_type, ); } diff --git a/composer.lock b/composer.lock index 94841a5fd..142f29d1f 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.37", + "version": "3.3.41", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "73e9010fb4e30ad8835f00a0df802733f98c4094" + "reference": "b194c872933882f4e5780eae56c59698d01623fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/73e9010fb4e30ad8835f00a0df802733f98c4094", - "reference": "73e9010fb4e30ad8835f00a0df802733f98c4094", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/b194c872933882f4e5780eae56c59698d01623fc", + "reference": "b194c872933882f4e5780eae56c59698d01623fc", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.37" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.41" }, - "time": "2024-11-06T14:44:53+00:00" + "time": "2025-02-05T10:30:34+00:00" }, { "name": "neitanod/forceutf8", diff --git a/js/simple-editor.js b/js/simple-editor.js index 91c7c5c8c..109b486df 100644 --- a/js/simple-editor.js +++ b/js/simple-editor.js @@ -90,6 +90,7 @@ $( '#canvas' ).css("z-index", "-100").hide(); }else{ $('#canvas').lock(); + jQuery('.dataTables_scrollBody .sorting_disabled input').attr('disabled', true); $('#table-editor-form').submit(); // showing the chart