From e075714d12be708deaf894f9cdadd7a1a4517465 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Sat, 10 Feb 2024 14:17:19 +0100 Subject: [PATCH] Refactor input validation --- endpoints/categories/category.php | 10 +++------- endpoints/currency/currency.php | 10 +++------- endpoints/household/household.php | 10 +++------- endpoints/subscription/add.php | 9 ++------- endpoints/user/save_user.php | 10 ++-------- includes/inputvalidation.php | 11 +++++++++++ 6 files changed, 24 insertions(+), 36 deletions(-) create mode 100644 includes/inputvalidation.php diff --git a/endpoints/categories/category.php b/endpoints/categories/category.php index b611949..97b5b3c 100644 --- a/endpoints/categories/category.php +++ b/endpoints/categories/category.php @@ -1,13 +1,9 @@ query($query); diff --git a/includes/inputvalidation.php b/includes/inputvalidation.php new file mode 100644 index 0000000..3725ac6 --- /dev/null +++ b/includes/inputvalidation.php @@ -0,0 +1,11 @@ + \ No newline at end of file