Skip to content

Commit d1335ab

Browse files
release: fixes
- Enhanced security - Fixed extra column issue with a simple editor
2 parents f6ee7b1 + d78e632 commit d1335ab

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
DOCKER_FILE: docker-compose.ci.yml
1515
strategy:
1616
fail-fast: false
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04
1818
steps:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-node@v2

.github/workflows/test-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
phpunit:
3838
name: PHPUnit
39-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-22.04
4040
services:
4141
mysql:
4242
image: mysql:5.7

classes/Visualizer/Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ private function _fetchSeriesFromEditableTable() {
429429
foreach ( $headers as $header ) {
430430
if ( ! empty( $types[ $header ] ) ) {
431431
$this->_series[] = array(
432-
'label' => $header,
432+
'label' => esc_html( wp_strip_all_tags( $header ) ),
433433
'type' => $types[ $header ],
434434
);
435435
}

classes/Visualizer/Source/Csv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function _fetchSeries( &$handle ) {
9797
$labels[ $i ] = $this->toUTF8( $labels[ $i ] );
9898

9999
$this->_series[] = array(
100-
'label' => $labels[ $i ],
100+
'label' => esc_html( wp_strip_all_tags( $labels[ $i ] ) ),
101101
'type' => isset( $types[ $i ] ) ? $types[ $i ] : $default_type,
102102
);
103103
}

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/simple-editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
$( '#canvas' ).css("z-index", "-100").hide();
9191
}else{
9292
$('#canvas').lock();
93+
jQuery('.dataTables_scrollBody .sorting_disabled input').attr('disabled', true);
9394
$('#table-editor-form').submit();
9495

9596
// showing the chart

0 commit comments

Comments
 (0)