mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 01:51:02 -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'];
|
||||
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user