Skip to content

Commit bb0caa7

Browse files
Merge branch 'release/2.5.6'
2 parents 04b3d8b + 4123f95 commit bb0caa7

7 files changed

Lines changed: 24 additions & 11 deletions

File tree

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Directories
2+
/.wordpress-org export-ignore
3+
/.github export-ignore
4+
5+
# Files
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore

.github/workflows/stable.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ jobs:
136136
runs-on: ubuntu-latest
137137
needs: pack
138138
steps:
139+
- name: Checkout
140+
uses: actions/checkout@v2
139141
- name: Setup variables
140142
id: vars
141143
run: |

advanced-cron-manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Advanced Cron Manager
44
* Description: View, pause, remove, edit and add WP Cron events.
5-
* Version: 2.5.5
5+
* Version: 2.5.6
66
* Author: BracketSpace
77
* Author URI: https://bracketspace.com
88
* License: GPL3
@@ -11,7 +11,7 @@
1111
* @package advanced-cron-manager
1212
*/
1313

14-
$plugin_version = '2.5.5';
14+
$plugin_version = '2.5.6';
1515
$plugin_file = __FILE__;
1616

1717
/**

assets/src/js/event-actions.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222

2323
// if data is type of array, we send it as JSON anyway,
2424
// change characters to make it look like associative array
25-
if ( data.type === 'array' ) {
26-
formattedData = `(${data.type}) ` + JSON.stringify(JSON.parse(data.msg), null, 2)
27-
.replace(/\{/g, '[')
28-
.replace(/}/g, ']')
29-
.replace(/:/g, ' =>')
30-
}
25+
if ( data.type === 'array' ) {
26+
formattedData = `(${data.type}) ` + JSON.stringify(JSON.parse(data.msg), null, 2)
27+
.replace(/\{/g, '[')
28+
.replace(/}/g, ']')
29+
.replace(/:/g, ' =>')
30+
}
31+
3132
arr.push(formattedData);
3233

3334
} else {

inc/AdminScreen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static function prepare_event_arguments( $event ) {
295295
} else {
296296
$parsed_args[] = array(
297297
'type' => gettype( $arg ),
298-
'msg' => $arg,
298+
'msg' => wp_filter_nohtml_kses( sanitize_text_field( html_entity_decode( $arg ) ) ),
299299
);
300300
}
301301

inc/Cron/EventsActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function insert() {
8787
if ( ! empty( $data['arguments'] ) ) {
8888
foreach ( $data['arguments'] as $arg_raw ) {
8989
if ( ! empty( $arg_raw ) ) {
90-
$args[] = sanitize_text_field( $arg_raw );
90+
$args[] = wp_filter_nohtml_kses( sanitize_text_field( html_entity_decode( $arg_raw ) ) );
9191
}
9292
}
9393
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: cron, wpcron, tool, manager, crontrol
44
Requires at least: 3.6
55
Requires PHP: 5.3
66
Tested up to: 6.4
7-
Stable tag: 2.5.5
7+
Stable tag: 2.5.6
88
License: GPLv2
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -101,6 +101,9 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo
101101

102102
== Changelog ==
103103

104+
= 2.5.6 =
105+
* [Fixed] Security vulnerability.
106+
104107
= 2.5.5 =
105108
* [Added] Custom schedules availability info.
106109

0 commit comments

Comments
 (0)