Skip to content

Commit 479f13b

Browse files
committed
Sanitize amount in CLI callback
1 parent ca7d27a commit 479f13b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

includes/CLI.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public static function coupons( $args, $assoc_args ) {
205205
*/
206206
public static function terms( $args, $assoc_args ) {
207207
list( $taxonomy, $amount ) = $args;
208+
$amount = absint( $amount );
208209

209210
$time_start = microtime( true );
210211

0 commit comments

Comments
 (0)