diff --git a/accounts.php b/accounts.php index efdd9594..61216bee 100644 --- a/accounts.php +++ b/accounts.php @@ -1,7 +1,7 @@
- +
diff --git a/categories.php b/categories.php index c633b2bb..95b56d04 100644 --- a/categories.php +++ b/categories.php @@ -1,13 +1,13 @@
-

Categories

+

Categories

- +
- +
diff --git a/client_assets.php b/client_assets.php index f91d0e3b..9f919f4b 100644 --- a/client_assets.php +++ b/client_assets.php @@ -32,7 +32,7 @@ $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT(*) AS count FROM as $other_count = $row['count']; if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); + $sb = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sb'])); }else{ $sb = "asset_name"; } @@ -75,18 +75,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));

Assets

- +
- +
- s"> + s">
diff --git a/client_certificates.php b/client_certificates.php index b94d2cfd..4de3f655 100644 --- a/client_certificates.php +++ b/client_certificates.php @@ -3,7 +3,7 @@
- +
diff --git a/client_contacts.php b/client_contacts.php index 688da7dd..68877746 100644 --- a/client_contacts.php +++ b/client_contacts.php @@ -3,7 +3,7 @@
- +
diff --git a/client_documents.php b/client_documents.php index 012041b8..244e58ad 100644 --- a/client_documents.php +++ b/client_documents.php @@ -11,7 +11,7 @@ if(!empty($_GET['folder_id'])){ // Sort by if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); + $sb = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sb'])); }else{ $sb = "document_name"; } @@ -130,7 +130,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
diff --git a/client_domains.php b/client_domains.php index aa2e25ee..10bb382f 100644 --- a/client_domains.php +++ b/client_domains.php @@ -3,7 +3,7 @@
- +
diff --git a/client_invoices.php b/client_invoices.php index 4ba41ed0..65e23cbd 100644 --- a/client_invoices.php +++ b/client_invoices.php @@ -3,7 +3,7 @@
- +
diff --git a/client_locations.php b/client_locations.php index 889af06e..f063aa64 100644 --- a/client_locations.php +++ b/client_locations.php @@ -3,7 +3,7 @@
- +
diff --git a/client_logins.php b/client_logins.php index 74bc5223..3c9eaf66 100644 --- a/client_logins.php +++ b/client_logins.php @@ -3,7 +3,7 @@
- +
diff --git a/client_logs.php b/client_logs.php index f8365711..8816067d 100644 --- a/client_logs.php +++ b/client_logs.php @@ -3,7 +3,7 @@
- +
diff --git a/client_networks.php b/client_networks.php index c2bcdba3..eea103c9 100644 --- a/client_networks.php +++ b/client_networks.php @@ -3,7 +3,7 @@
- +
diff --git a/client_payments.php b/client_payments.php index 02ebd5af..32ce2214 100644 --- a/client_payments.php +++ b/client_payments.php @@ -3,7 +3,7 @@
- +
diff --git a/client_quotes.php b/client_quotes.php index c48735df..53f367b5 100644 --- a/client_quotes.php +++ b/client_quotes.php @@ -3,7 +3,7 @@
- +
diff --git a/client_recurring_invoices.php b/client_recurring_invoices.php index 345ea32f..523d8c11 100644 --- a/client_recurring_invoices.php +++ b/client_recurring_invoices.php @@ -3,7 +3,7 @@
- +
diff --git a/client_scheduled_tickets.php b/client_scheduled_tickets.php index 8173b208..bb2392b4 100644 --- a/client_scheduled_tickets.php +++ b/client_scheduled_tickets.php @@ -3,7 +3,7 @@
- +
diff --git a/client_services.php b/client_services.php index 6eacd6bc..774ee229 100644 --- a/client_services.php +++ b/client_services.php @@ -3,7 +3,7 @@
- +
diff --git a/client_shared_items.php b/client_shared_items.php index d425034e..b99df38e 100644 --- a/client_shared_items.php +++ b/client_shared_items.php @@ -3,7 +3,7 @@
- +
diff --git a/client_software.php b/client_software.php index 16e89fb2..71c21061 100644 --- a/client_software.php +++ b/client_software.php @@ -3,7 +3,7 @@
- +
diff --git a/client_tickets.php b/client_tickets.php index 5f4af54c..d83a96c1 100644 --- a/client_tickets.php +++ b/client_tickets.php @@ -3,7 +3,7 @@
- +
diff --git a/client_trips.php b/client_trips.php index 995c2d4d..48d52e06 100644 --- a/client_trips.php +++ b/client_trips.php @@ -3,7 +3,7 @@
- +
diff --git a/client_vendors.php b/client_vendors.php index 8caebfff..c01cf6a7 100644 --- a/client_vendors.php +++ b/client_vendors.php @@ -3,7 +3,7 @@
- +
diff --git a/clients.php b/clients.php index 99d47d63..99f2403c 100644 --- a/clients.php +++ b/clients.php @@ -15,7 +15,7 @@ if(isset($_GET['p'])){ //Custom Query Filter if(isset($_GET['query'])){ - $query = mysqli_real_escape_string($mysqli,$_GET['query']); + $query = strip_tags(mysqli_real_escape_string($mysqli,$_GET['query'])); //Phone Numbers $phone_query = preg_replace("/[^0-9]/", '',$query); if(empty($phone_query)){ @@ -28,7 +28,7 @@ if(isset($_GET['query'])){ //Column Filter if(!empty($_GET['sortby'])){ - $sortby = mysqli_real_escape_string($mysqli,$_GET['sortby']); + $sortby = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sortby'])); }else{ $sortby = "client_accessed_at"; } @@ -55,8 +55,8 @@ if(empty($_GET['canned_date'])) { //Date Filter if($_GET['canned_date'] == "custom" && !empty($_GET['date_from'])){ - $date_from = mysqli_real_escape_string($mysqli,$_GET['date_from']); - $date_to = mysqli_real_escape_string($mysqli,$_GET['date_to']); + $date_from = strip_tags(mysqli_real_escape_string($mysqli,$_GET['date_from'])); + $date_to = strip_tags(mysqli_real_escape_string($mysqli,$_GET['date_to'])); }elseif($_GET['canned_date'] == "today"){ $date_from = date('Y-m-d'); $date_to = date('Y-m-d'); @@ -119,7 +119,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
@@ -148,13 +148,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/companies.php b/companies.php index 7d3502db..ee6b370f 100644 --- a/companies.php +++ b/companies.php @@ -1,7 +1,7 @@
- +
diff --git a/expenses.php b/expenses.php index 88ca3b84..196ec06a 100644 --- a/expenses.php +++ b/expenses.php @@ -3,7 +3,7 @@ //$o = "DESC"; if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); + $sb = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sb'])); }else{ $sb = "expense_date"; } @@ -22,8 +22,8 @@ if(empty($_GET['canned_date'])){ //Date Filter if($_GET['canned_date'] == "custom" && !empty($_GET['dtf'])){ - $dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']); - $dtt = mysqli_real_escape_string($mysqli,$_GET['dtt']); + $dtf = strip_tags(mysqli_real_escape_string($mysqli,$_GET['dtf'])); + $dtt = strip_tags(mysqli_real_escape_string($mysqli,$_GET['dtt'])); }elseif($_GET['canned_date'] == "today"){ $dtf = date('Y-m-d'); $dtt = date('Y-m-d'); @@ -83,7 +83,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
@@ -117,13 +117,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/global_search.php b/global_search.php index 811ac99a..32defdc4 100644 --- a/global_search.php +++ b/global_search.php @@ -4,7 +4,7 @@ if(isset($_GET['query'])){ - $query = mysqli_real_escape_string($mysqli,$_GET['query']); + $query = strip_tags(mysqli_real_escape_string($mysqli,$_GET['query'])); $phone_query = preg_replace("/[^0-9]/", '',$query); if(empty($phone_query)){ diff --git a/invoices.php b/invoices.php index 976b48f6..99dfc925 100644 --- a/invoices.php +++ b/invoices.php @@ -85,8 +85,8 @@ //Date Filter if($_GET['canned_date'] == "custom" && !empty($_GET['dtf'])){ - $dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']); - $dtt = mysqli_real_escape_string($mysqli,$_GET['dtt']); + $dtf = strip_tags(mysqli_real_escape_string($mysqli,$_GET['dtf'])); + $dtt = strip_tags(mysqli_real_escape_string($mysqli,$_GET['dtt'])); }elseif($_GET['canned_date'] == "today"){ $dtf = date('Y-m-d'); $dtt = date('Y-m-d'); @@ -201,11 +201,11 @@
- +
- +
diff --git a/logs.php b/logs.php index ba92622b..c0195480 100644 --- a/logs.php +++ b/logs.php @@ -1,7 +1,7 @@
-

Audit Logs

+

Audit Logs

- +
diff --git a/notifications_dismissed.php b/notifications_dismissed.php index 8944a3f4..e7ac7974 100644 --- a/notifications_dismissed.php +++ b/notifications_dismissed.php @@ -2,7 +2,7 @@ //Column Filter if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); + $sb = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sb'])); }else{ $sb = "notification_timestamp"; } @@ -15,8 +15,8 @@ if(!isset($_GET['o'])){ //Date From and Date To Filter if(!empty($_GET['dtf'])){ - $dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']); - $dtt = mysqli_real_escape_string($mysqli,$_GET['dtt']); + $dtf = strip_tags(mysqli_real_escape_string($mysqli,$_GET['dtf'])); + $dtt = strip_tags(mysqli_real_escape_string($mysqli,$_GET['dtt'])); }else{ $dtf = "0000-00-00"; $dtt = "9999-00-00"; @@ -44,7 +44,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
@@ -59,13 +59,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/pagination_head.php b/pagination_head.php index 742f1689..bbfb282a 100644 --- a/pagination_head.php +++ b/pagination_head.php @@ -34,7 +34,7 @@ if(isset($_GET['o'])){ // Search if(isset($_GET['q'])){ - $q = mysqli_real_escape_string($mysqli,trim($_GET['q'])); + $q = strip_tags(mysqli_real_escape_string($mysqli,trim($_GET['q']))); }else{ $q = ""; } \ No newline at end of file diff --git a/payments.php b/payments.php index fc33a37c..0d529e1c 100644 --- a/payments.php +++ b/payments.php @@ -1,7 +1,7 @@
- +
@@ -107,13 +107,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/products.php b/products.php index 2d44fa5d..b933c8b1 100644 --- a/products.php +++ b/products.php @@ -1,7 +1,7 @@
- +
diff --git a/quotes.php b/quotes.php index 82bd90d3..e3b4bd99 100644 --- a/quotes.php +++ b/quotes.php @@ -1,7 +1,7 @@
- +
@@ -108,13 +108,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/recurring_invoices.php b/recurring_invoices.php index c934bc31..83249d98 100644 --- a/recurring_invoices.php +++ b/recurring_invoices.php @@ -1,7 +1,7 @@
- +
@@ -108,13 +108,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/revenues.php b/revenues.php index 2de5be29..4bb36508 100644 --- a/revenues.php +++ b/revenues.php @@ -1,7 +1,7 @@
- +
@@ -108,13 +108,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
- +
diff --git a/scheduled_tickets.php b/scheduled_tickets.php index 3dfb20ca..aad30880 100644 --- a/scheduled_tickets.php +++ b/scheduled_tickets.php @@ -2,7 +2,7 @@ include("inc_all.php"); if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); + $sb = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sb'])); }else{ $sb = "scheduled_ticket_subject"; } @@ -34,7 +34,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- +
diff --git a/settings_api.php b/settings_api.php index 4e69f822..a5a6557d 100644 --- a/settings_api.php +++ b/settings_api.php @@ -1,7 +1,7 @@
- +
diff --git a/settings_tags.php b/settings_tags.php index 5385867e..5634f28b 100644 --- a/settings_tags.php +++ b/settings_tags.php @@ -3,7 +3,7 @@
- +
diff --git a/settings_taxes.php b/settings_taxes.php index 1c7be89f..735f7795 100644 --- a/settings_taxes.php +++ b/settings_taxes.php @@ -1,7 +1,7 @@ -

+