Skip to content

Commit 0207ffc

Browse files
committed
Tweak: Add validation on the preview form
1 parent f510cd4 commit 0207ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/class-pojo-forms-ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function preview_shortcode() {
1313

1414
$embed = new Pojo_Embed_Template();
1515
echo $embed->get_header();
16-
echo do_shortcode( POJO_FORMS()->helpers->get_shortcode_text( $_POST['id'] ) );
16+
echo do_shortcode( POJO_FORMS()->helpers->get_shortcode_text( absint( $_POST['id'] ) ) );
1717
echo $embed->get_footer();
1818

1919
die();

0 commit comments

Comments
 (0)