From afe3e4a82b676021e80858880340c7ae19fe3b54 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Sat, 27 Feb 2021 13:09:57 -0500 Subject: [PATCH] Fixed add recurring causing it convert POST VAR from to string to INT --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 815ae9cc..d9f629f2 100644 --- a/post.php +++ b/post.php @@ -2247,7 +2247,7 @@ if(isset($_POST['add_recurring'])){ $frequency = strip_tags(mysqli_real_escape_string($mysqli,$_POST['frequency'])); $start_date = strip_tags(mysqli_real_escape_string($mysqli,$_POST['start_date'])); $category = intval($_POST['category']); - $currency_code = intval($_POST['currency_code']); + $currency_code = strip_tags(mysqli_real_escape_string($mysqli,$_POST['currency_code'])); $scope = strip_tags(mysqli_real_escape_string($mysqli,$_POST['scope'])); //Get the last Recurring Number and add 1 for the new Recurring number