From 89fba247c537488745383e02d0538a1d2efaf283 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 2 Aug 2026 16:08:01 -0400 Subject: [PATCH] Add some missing maxlength form options to prevent info overflow and result in error 500 --- admin/identity_providers.php | 4 +-- admin/modals/ai/ai_model_add.php | 2 +- admin/modals/ai/ai_model_edit.php | 2 +- admin/modals/ai/ai_provider_add.php | 6 ++-- admin/modals/ai/ai_provider_edit.php | 6 ++-- .../contract_template_add.php | 4 +-- .../contract_template_edit.php | 4 +-- .../payment_method/payment_method_add.php | 2 +- .../payment_method/payment_method_edit.php | 2 +- .../payment_provider/payment_provider_add.php | 4 +-- .../payment_provider_edit.php | 4 +-- admin/modals/tag/tag_add.php | 2 +- admin/modals/tag/tag_edit.php | 2 +- .../vendor_template/vendor_template_edit.php | 2 +- admin/settings_company.php | 14 ++++---- admin/settings_invoice.php | 6 ++-- admin/settings_mail.php | 34 +++++++++---------- admin/settings_project.php | 2 +- admin/settings_quote.php | 4 +-- admin/settings_security.php | 2 +- admin/settings_ticket.php | 4 +-- admin/sla.php | 2 +- agent/invoice.php | 2 +- agent/modals/asset/asset_add.php | 6 ++-- agent/modals/asset/asset_copy.php | 30 ++++++++-------- agent/modals/asset/asset_edit.php | 2 +- agent/modals/client/client_add.php | 4 +-- agent/modals/client/client_edit.php | 2 +- agent/modals/contact/contact_add.php | 2 +- agent/modals/contact/contact_edit.php | 2 +- agent/modals/credential/credential_edit.php | 2 +- .../document/document_add_from_template.php | 2 +- agent/modals/product/product_add.php | 4 +-- agent/modals/product/product_edit.php | 4 +-- agent/modals/revenue/revenue_add.php | 2 +- agent/modals/revenue/revenue_edit.php | 2 +- agent/modals/software/software_add.php | 2 +- agent/modals/software/software_edit.php | 2 +- agent/modals/ticket/ticket_add.php | 2 +- agent/modals/ticket/ticket_edit.php | 2 +- agent/modals/ticket/ticket_invoice_add.php | 2 +- agent/modals/ticket/ticket_quote_add.php | 2 +- agent/quote.php | 2 +- agent/recurring_invoice.php | 2 +- agent/user/user_details.php | 4 +-- setup/index.php | 8 ++--- 46 files changed, 104 insertions(+), 104 deletions(-) diff --git a/admin/identity_providers.php b/admin/identity_providers.php index 2dcde042..665904f3 100644 --- a/admin/identity_providers.php +++ b/admin/identity_providers.php @@ -33,7 +33,7 @@ require_once "includes/inc_all_admin.php";
- + @@ -43,7 +43,7 @@ require_once "includes/inc_all_admin.php";
- + diff --git a/admin/modals/ai/ai_model_add.php b/admin/modals/ai/ai_model_add.php index fc750378..13ea0cf9 100644 --- a/admin/modals/ai/ai_model_add.php +++ b/admin/modals/ai/ai_model_add.php @@ -44,7 +44,7 @@ ob_start();
- + diff --git a/admin/modals/ai/ai_model_edit.php b/admin/modals/ai/ai_model_edit.php index de40b22e..d624ea62 100644 --- a/admin/modals/ai/ai_model_edit.php +++ b/admin/modals/ai/ai_model_edit.php @@ -56,7 +56,7 @@ ob_start();
- + diff --git a/admin/modals/ai/ai_provider_add.php b/admin/modals/ai/ai_provider_add.php index 16c341f9..55d2c9df 100644 --- a/admin/modals/ai/ai_provider_add.php +++ b/admin/modals/ai/ai_provider_add.php @@ -23,7 +23,7 @@ ob_start();
- + @@ -33,7 +33,7 @@ ob_start();
- + @@ -43,7 +43,7 @@ ob_start();
- + diff --git a/admin/modals/ai/ai_provider_edit.php b/admin/modals/ai/ai_provider_edit.php index 55188829..9973be99 100644 --- a/admin/modals/ai/ai_provider_edit.php +++ b/admin/modals/ai/ai_provider_edit.php @@ -33,7 +33,7 @@ ob_start();
- + @@ -43,7 +43,7 @@ ob_start();
- + @@ -53,7 +53,7 @@ ob_start();
- + diff --git a/admin/modals/contract_template/contract_template_add.php b/admin/modals/contract_template/contract_template_add.php index c746b830..f2ae07ca 100644 --- a/admin/modals/contract_template/contract_template_add.php +++ b/admin/modals/contract_template/contract_template_add.php @@ -183,7 +183,7 @@ ob_start();
- + @@ -193,7 +193,7 @@ ob_start();
- + diff --git a/admin/modals/contract_template/contract_template_edit.php b/admin/modals/contract_template/contract_template_edit.php index 05515f3f..2eda674f 100644 --- a/admin/modals/contract_template/contract_template_edit.php +++ b/admin/modals/contract_template/contract_template_edit.php @@ -217,7 +217,7 @@ ob_start();
- @@ -228,7 +228,7 @@ ob_start();
- diff --git a/admin/modals/payment_method/payment_method_add.php b/admin/modals/payment_method/payment_method_add.php index 8301d2b2..d2d49d46 100644 --- a/admin/modals/payment_method/payment_method_add.php +++ b/admin/modals/payment_method/payment_method_add.php @@ -28,7 +28,7 @@ ob_start();
- +
diff --git a/admin/modals/payment_method/payment_method_edit.php b/admin/modals/payment_method/payment_method_edit.php index 2aaf60e0..1c0415f7 100644 --- a/admin/modals/payment_method/payment_method_edit.php +++ b/admin/modals/payment_method/payment_method_edit.php @@ -36,7 +36,7 @@ ob_start();
- +
diff --git a/admin/modals/payment_provider/payment_provider_add.php b/admin/modals/payment_provider/payment_provider_add.php index b2d29afc..3c304d0f 100644 --- a/admin/modals/payment_provider/payment_provider_add.php +++ b/admin/modals/payment_provider/payment_provider_add.php @@ -49,7 +49,7 @@ ob_start();
- + @@ -59,7 +59,7 @@ ob_start();
- + diff --git a/admin/modals/payment_provider/payment_provider_edit.php b/admin/modals/payment_provider/payment_provider_edit.php index 7b843b2e..fb188b3f 100644 --- a/admin/modals/payment_provider/payment_provider_edit.php +++ b/admin/modals/payment_provider/payment_provider_edit.php @@ -52,7 +52,7 @@ ob_start();
- + @@ -62,7 +62,7 @@ ob_start();
- + diff --git a/admin/modals/tag/tag_add.php b/admin/modals/tag/tag_add.php index 88b47736..5c6f313d 100644 --- a/admin/modals/tag/tag_add.php +++ b/admin/modals/tag/tag_add.php @@ -85,7 +85,7 @@ ob_start();
- + diff --git a/admin/modals/tag/tag_edit.php b/admin/modals/tag/tag_edit.php index 5c551aaf..5f7316df 100644 --- a/admin/modals/tag/tag_edit.php +++ b/admin/modals/tag/tag_edit.php @@ -66,7 +66,7 @@ ob_start();
- + diff --git a/admin/modals/vendor_template/vendor_template_edit.php b/admin/modals/vendor_template/vendor_template_edit.php index 338f142d..bcc98957 100644 --- a/admin/modals/vendor_template/vendor_template_edit.php +++ b/admin/modals/vendor_template/vendor_template_edit.php @@ -137,7 +137,7 @@ ob_start(); - + diff --git a/admin/settings_company.php b/admin/settings_company.php index cbff5c17..0fbe14d7 100644 --- a/admin/settings_company.php +++ b/admin/settings_company.php @@ -53,7 +53,7 @@ $company_initials = escapeHtml(initials($company_name));
- + @@ -63,7 +63,7 @@ $company_initials = escapeHtml(initials($company_name));
- + @@ -73,7 +73,7 @@ $company_initials = escapeHtml(initials($company_name));
- + @@ -83,7 +83,7 @@ $company_initials = escapeHtml(initials($company_name));
- + @@ -93,7 +93,7 @@ $company_initials = escapeHtml(initials($company_name));
- + @@ -133,7 +133,7 @@ $company_initials = escapeHtml(initials($company_name));
- + @@ -143,7 +143,7 @@ $company_initials = escapeHtml(initials($company_name));
- + diff --git a/admin/settings_invoice.php b/admin/settings_invoice.php index d9748ee4..f98775e9 100644 --- a/admin/settings_invoice.php +++ b/admin/settings_invoice.php @@ -18,7 +18,7 @@ require_once "includes/inc_all_admin.php";
- + @@ -72,7 +72,7 @@ require_once "includes/inc_all_admin.php";
- + @@ -86,7 +86,7 @@ require_once "includes/inc_all_admin.php";
- + diff --git a/admin/settings_mail.php b/admin/settings_mail.php index b50496d0..35d71402 100644 --- a/admin/settings_mail.php +++ b/admin/settings_mail.php @@ -128,7 +128,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
@@ -157,7 +157,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
Leave blank if no authentication is required.
@@ -165,7 +165,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
@@ -209,7 +209,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
@@ -238,7 +238,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
The mailbox address to monitor for incoming tickets.
@@ -246,7 +246,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
@@ -279,14 +279,14 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
- +
@@ -296,7 +296,7 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;
- +
@@ -350,23 +350,23 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready; System Default
share links & system tasks - - + + Invoices
sent when emailing invoices - - + + Quotes
sent when emailing quotes - - + + Tickets
ticket creation & client replies - - + + diff --git a/admin/settings_project.php b/admin/settings_project.php index 294a911b..c8b6937e 100644 --- a/admin/settings_project.php +++ b/admin/settings_project.php @@ -18,7 +18,7 @@ require_once "includes/inc_all_admin.php";
- + diff --git a/admin/settings_quote.php b/admin/settings_quote.php index 76c39b1f..fb702fa0 100644 --- a/admin/settings_quote.php +++ b/admin/settings_quote.php @@ -16,7 +16,7 @@ require_once "includes/inc_all_admin.php";
- + @@ -41,7 +41,7 @@ require_once "includes/inc_all_admin.php";
- + diff --git a/admin/settings_security.php b/admin/settings_security.php index 17a0c77f..cf638ec8 100644 --- a/admin/settings_security.php +++ b/admin/settings_security.php @@ -29,7 +29,7 @@ require_once "includes/inc_all_admin.php";
- + diff --git a/admin/settings_ticket.php b/admin/settings_ticket.php index da49b869..49fd8c87 100644 --- a/admin/settings_ticket.php +++ b/admin/settings_ticket.php @@ -16,7 +16,7 @@ require_once "includes/inc_all_admin.php";
- + @@ -76,7 +76,7 @@ require_once "includes/inc_all_admin.php";
- + diff --git a/admin/sla.php b/admin/sla.php index 787b5140..dbdf7629 100644 --- a/admin/sla.php +++ b/admin/sla.php @@ -183,7 +183,7 @@ while ($assignment_row = mysqli_fetch_assoc($sql_assignments)) {
- +
diff --git a/agent/invoice.php b/agent/invoice.php index fe1031c2..6695faa4 100644 --- a/agent/invoice.php +++ b/agent/invoice.php @@ -453,7 +453,7 @@ if (isset($_GET['invoice_id'])) { - + diff --git a/agent/modals/asset/asset_add.php b/agent/modals/asset/asset_add.php index 3022ebc3..db6c24c4 100644 --- a/agent/modals/asset/asset_add.php +++ b/agent/modals/asset/asset_add.php @@ -308,7 +308,7 @@ ob_start();
- +
@@ -412,7 +412,7 @@ ob_start();
- +
@@ -459,7 +459,7 @@ ob_start();
- + diff --git a/agent/modals/asset/asset_copy.php b/agent/modals/asset/asset_copy.php index 28ca1004..4ed4d4b9 100644 --- a/agent/modals/asset/asset_copy.php +++ b/agent/modals/asset/asset_copy.php @@ -108,7 +108,7 @@ ob_start();
- + @@ -120,7 +120,7 @@ ob_start();
- + @@ -130,7 +130,7 @@ ob_start();
- + @@ -140,7 +140,7 @@ ob_start();
- + @@ -152,7 +152,7 @@ ob_start();
- + @@ -163,7 +163,7 @@ ob_start();
- + @@ -199,7 +199,7 @@ ob_start();
- + @@ -285,7 +285,7 @@ ob_start();
- +
> @@ -300,7 +300,7 @@ ob_start();
- +
@@ -310,7 +310,7 @@ ob_start();
- + @@ -320,7 +320,7 @@ ob_start();
- + @@ -330,7 +330,7 @@ ob_start();
- + @@ -340,7 +340,7 @@ ob_start();
- + @@ -387,7 +387,7 @@ ob_start();
- + @@ -422,7 +422,7 @@ ob_start();
- + diff --git a/agent/modals/asset/asset_edit.php b/agent/modals/asset/asset_edit.php index 5245d374..df5e33a6 100644 --- a/agent/modals/asset/asset_edit.php +++ b/agent/modals/asset/asset_edit.php @@ -441,7 +441,7 @@ ob_start();
- + diff --git a/agent/modals/client/client_add.php b/agent/modals/client/client_add.php index f715e601..0a43ac4a 100644 --- a/agent/modals/client/client_add.php +++ b/agent/modals/client/client_add.php @@ -248,7 +248,7 @@ ob_start(); - + @@ -307,7 +307,7 @@ ob_start(); - + diff --git a/agent/modals/client/client_edit.php b/agent/modals/client/client_edit.php index de4021e4..175c2a56 100644 --- a/agent/modals/client/client_edit.php +++ b/agent/modals/client/client_edit.php @@ -117,7 +117,7 @@ ob_start();
- diff --git a/agent/modals/contact/contact_add.php b/agent/modals/contact/contact_add.php index bfff018b..5f719656 100644 --- a/agent/modals/contact/contact_add.php +++ b/agent/modals/contact/contact_add.php @@ -138,7 +138,7 @@ ob_start(); - + diff --git a/agent/modals/contact/contact_edit.php b/agent/modals/contact/contact_edit.php index cb2d8f7f..d1c5ac1f 100644 --- a/agent/modals/contact/contact_edit.php +++ b/agent/modals/contact/contact_edit.php @@ -148,7 +148,7 @@ ob_start(); " placeholder="+" maxlength="4"> - + diff --git a/agent/modals/credential/credential_edit.php b/agent/modals/credential/credential_edit.php index 70823325..91635c57 100644 --- a/agent/modals/credential/credential_edit.php +++ b/agent/modals/credential/credential_edit.php @@ -99,7 +99,7 @@ ob_start();
- + diff --git a/agent/modals/document/document_add_from_template.php b/agent/modals/document/document_add_from_template.php index 2c6ca191..a70fb42c 100644 --- a/agent/modals/document/document_add_from_template.php +++ b/agent/modals/document/document_add_from_template.php @@ -54,7 +54,7 @@ ob_start();
- + diff --git a/agent/modals/product/product_add.php b/agent/modals/product/product_add.php index 0bcb5165..1d928006 100644 --- a/agent/modals/product/product_add.php +++ b/agent/modals/product/product_add.php @@ -135,7 +135,7 @@ ob_start();
- + @@ -151,7 +151,7 @@ ob_start();
- + diff --git a/agent/modals/product/product_edit.php b/agent/modals/product/product_edit.php index 741734b3..3afc91f4 100644 --- a/agent/modals/product/product_edit.php +++ b/agent/modals/product/product_edit.php @@ -120,7 +120,7 @@ ob_start();
- + @@ -136,7 +136,7 @@ ob_start();
- + diff --git a/agent/modals/revenue/revenue_add.php b/agent/modals/revenue/revenue_add.php index 45ff3e80..1f4ad410 100644 --- a/agent/modals/revenue/revenue_add.php +++ b/agent/modals/revenue/revenue_add.php @@ -116,7 +116,7 @@ ob_start();
- +
diff --git a/agent/modals/revenue/revenue_edit.php b/agent/modals/revenue/revenue_edit.php index 8cca84ce..4663cc91 100644 --- a/agent/modals/revenue/revenue_edit.php +++ b/agent/modals/revenue/revenue_edit.php @@ -140,7 +140,7 @@ ob_start();
- +
diff --git a/agent/modals/software/software_add.php b/agent/modals/software/software_add.php index 4b4cb864..0f570141 100644 --- a/agent/modals/software/software_add.php +++ b/agent/modals/software/software_add.php @@ -203,7 +203,7 @@ ob_start();
- +
diff --git a/agent/modals/software/software_edit.php b/agent/modals/software/software_edit.php index ebca3d41..80e23a5a 100644 --- a/agent/modals/software/software_edit.php +++ b/agent/modals/software/software_edit.php @@ -217,7 +217,7 @@ ob_start();
- + diff --git a/agent/modals/ticket/ticket_add.php b/agent/modals/ticket/ticket_add.php index df6e1c83..caeae419 100644 --- a/agent/modals/ticket/ticket_add.php +++ b/agent/modals/ticket/ticket_add.php @@ -279,7 +279,7 @@ ob_start();
- + diff --git a/agent/modals/ticket/ticket_edit.php b/agent/modals/ticket/ticket_edit.php index 486826ad..fa9baad1 100644 --- a/agent/modals/ticket/ticket_edit.php +++ b/agent/modals/ticket/ticket_edit.php @@ -372,7 +372,7 @@ ob_start();
- + diff --git a/agent/modals/ticket/ticket_invoice_add.php b/agent/modals/ticket/ticket_invoice_add.php index 87707b73..3ffe6c6c 100644 --- a/agent/modals/ticket/ticket_invoice_add.php +++ b/agent/modals/ticket/ticket_invoice_add.php @@ -226,7 +226,7 @@ ob_start();
- + diff --git a/agent/modals/ticket/ticket_quote_add.php b/agent/modals/ticket/ticket_quote_add.php index 664419d3..40b32683 100644 --- a/agent/modals/ticket/ticket_quote_add.php +++ b/agent/modals/ticket/ticket_quote_add.php @@ -161,7 +161,7 @@ ob_start();
- + diff --git a/agent/quote.php b/agent/quote.php index 49e691fe..9f35b9db 100644 --- a/agent/quote.php +++ b/agent/quote.php @@ -376,7 +376,7 @@ if (isset($_GET['quote_id'])) { ?>"> - + diff --git a/agent/recurring_invoice.php b/agent/recurring_invoice.php index fd06ebc7..42c5d6ec 100644 --- a/agent/recurring_invoice.php +++ b/agent/recurring_invoice.php @@ -338,7 +338,7 @@ if (isset($_GET['recurring_invoice_id'])) { ?>"> - + diff --git a/agent/user/user_details.php b/agent/user/user_details.php index f3003aeb..75d4ec37 100644 --- a/agent/user/user_details.php +++ b/agent/user/user_details.php @@ -32,7 +32,7 @@ require_once "includes/inc_all_user.php";
- + @@ -52,7 +52,7 @@ require_once "includes/inc_all_user.php";
- + diff --git a/setup/index.php b/setup/index.php index a1e5ce7b..47a9a2c0 100644 --- a/setup/index.php +++ b/setup/index.php @@ -1189,7 +1189,7 @@ if (isset($_POST['add_telemetry'])) {
- + @@ -1199,7 +1199,7 @@ if (isset($_POST['add_telemetry'])) {
- + @@ -1243,7 +1243,7 @@ if (isset($_POST['add_telemetry'])) {
- + @@ -1323,7 +1323,7 @@ if (isset($_POST['add_telemetry'])) {
- +