mirror of
https://github.com/itflow-org/itflow
synced 2026-08-16 12:35:11 +00:00
Updated validateCSRFToken to automatically grab and compare get or post csrf token no longer need to pass an argument to the function which fixed the issue if no hash was present
This commit is contained in:
@@ -42,7 +42,7 @@ if (isset($_GET['certificate_fetch_parse_json_details'])) {
|
||||
|
||||
if (isset($_POST['client_set_notes'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_client', 2);
|
||||
|
||||
@@ -61,7 +61,7 @@ if (isset($_POST['client_set_notes'])) {
|
||||
|
||||
if (isset($_POST['contact_set_notes'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_client', 2);
|
||||
|
||||
@@ -88,7 +88,7 @@ if (isset($_POST['contact_set_notes'])) {
|
||||
|
||||
if (isset($_POST['asset_set_notes'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_support', 2);
|
||||
|
||||
@@ -159,7 +159,7 @@ if (isset($_GET['ticket_query_views'])) {
|
||||
*/
|
||||
if (isset($_GET['share_generate_link'])) {
|
||||
|
||||
validateCSRFToken($_GET['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_support', 2);
|
||||
|
||||
@@ -587,7 +587,7 @@ if (isset($_POST['update_kanban_ticket'])) {
|
||||
if (isset($_POST['update_ticket_tasks_order'])) {
|
||||
// Update multiple ticket tasks order
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_support', 2);
|
||||
|
||||
@@ -609,7 +609,7 @@ if (isset($_POST['update_ticket_tasks_order'])) {
|
||||
if (isset($_POST['update_task_templates_order'])) {
|
||||
// Update multiple task templates order
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_support', 2);
|
||||
|
||||
@@ -630,7 +630,7 @@ if (isset($_POST['update_task_templates_order'])) {
|
||||
|
||||
if (isset($_POST['update_project_template_ticket_order'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_support', 2);
|
||||
|
||||
@@ -652,7 +652,7 @@ if (isset($_POST['update_project_template_ticket_order'])) {
|
||||
if (isset($_POST['update_quote_items_order'])) {
|
||||
// Update multiple quote items order
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_sales', 2);
|
||||
|
||||
@@ -674,7 +674,7 @@ if (isset($_POST['update_quote_items_order'])) {
|
||||
if (isset($_POST['update_invoice_items_order'])) {
|
||||
// Update multiple invoice items order
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_sales', 2);
|
||||
|
||||
@@ -696,7 +696,7 @@ if (isset($_POST['update_invoice_items_order'])) {
|
||||
if (isset($_POST['update_recurring_invoice_items_order'])) {
|
||||
// Update multiple recurring invoice items order
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
enforceUserPermission('module_sales', 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user