Skip to content

Commit 69f610c

Browse files
authored
enforce integer form id
1 parent 20dd47c commit 69f610c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/class-gf-cli-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ function duplicate( $args, $assoc_args ) {
511511
*/
512512
function update( $args, $assoc_args ) {
513513

514-
$form_id = $args[0];
514+
$form_id = intval( $args[0] );
515515

516516
if ( isset( $assoc_args['form-json'] ) ) {
517517
$json_config = $assoc_args['form-json'];

0 commit comments

Comments
 (0)