mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-11 02:21:10 -04:00
Amend the fix to include delete_supplier (#3332)
This commit is contained in:
@@ -5,7 +5,7 @@ function validate_method()
|
|||||||
|
|
||||||
$url = $_SERVER['REQUEST_URI'];
|
$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))
|
if($post_required && $_SERVER["REQUEST_METHOD"] != "POST" && empty($_POST))
|
||||||
{
|
{
|
||||||
@@ -13,4 +13,4 @@ function validate_method()
|
|||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user