Skip to content

Commit b1fde8c

Browse files
committed
Add (back) sanitization of
1 parent f2f843a commit b1fde8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/CLI.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class CLI extends WP_CLI_Command {
2121
*/
2222
public static function products( $args, $assoc_args ) {
2323
list( $amount ) = $args;
24+
$amount = absint( $amount );
2425

2526
$time_start = microtime( true );
2627

@@ -53,6 +54,7 @@ public static function products( $args, $assoc_args ) {
5354
*/
5455
public static function orders( $args, $assoc_args ) {
5556
list( $amount ) = $args;
57+
$amount = absint( $amount );
5658

5759
$time_start = microtime( true );
5860

@@ -89,6 +91,7 @@ public static function orders( $args, $assoc_args ) {
8991
*/
9092
public static function customers( $args, $assoc_args ) {
9193
list( $amount ) = $args;
94+
$amount = absint( $amount );
9295

9396
$time_start = microtime( true );
9497

@@ -115,6 +118,7 @@ public static function customers( $args, $assoc_args ) {
115118
*/
116119
public static function coupons( $args, $assoc_args ) {
117120
list( $amount ) = $args;
121+
$amount = absint( $amount );
118122

119123
$time_start = microtime( true );
120124

0 commit comments

Comments
 (0)