From 329f177657ad10c4c75aaf5dee82d18e1410bb37 Mon Sep 17 00:00:00 2001 From: jekkos Date: Mon, 4 Oct 2021 22:03:40 +0200 Subject: [PATCH] Amend the fix to include delete_supplier (#3332) --- application/hooks/method_hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/hooks/method_hook.php b/application/hooks/method_hook.php index e61a3c7357..805ba38f05 100644 --- a/application/hooks/method_hook.php +++ b/application/hooks/method_hook.php @@ -5,7 +5,7 @@ function validate_method() $url = $_SERVER['REQUEST_URI']; - $post_required = preg_match('/(save|delete|delete_item)\/?\d*?/', $url); + $post_required = preg_match('/(save|delete*|remove*)\/?\d*?/', $url); if($post_required && $_SERVER["REQUEST_METHOD"] != "POST" && empty($_POST)) { @@ -13,4 +13,4 @@ function validate_method() die; } -} \ No newline at end of file +}