diff --git a/client_asset_details.php b/client_asset_details.php
index e84fef9f..407126c1 100644
--- a/client_asset_details.php
+++ b/client_asset_details.php
@@ -66,6 +66,9 @@ if (isset($_GET['asset_id'])) {
$location_name_display = $location_name;
}
+ // Override Tab Title // No Sanitizing needed as this var will opnly be used in the tab title
+ $page_title = $row['asset_name'];
+
// Related Tickets Query
$sql_related_tickets = mysqli_query($mysqli, "SELECT * FROM tickets
LEFT JOIN users on ticket_assigned_to = user_id
diff --git a/client_contact_details.php b/client_contact_details.php
index 7efbbb8d..9a77138e 100644
--- a/client_contact_details.php
+++ b/client_contact_details.php
@@ -34,6 +34,9 @@ if (isset($_GET['contact_id'])) {
$auth_method = nullable_htmlentities($row['user_auth_method']);
$contact_client_id = intval($row['contact_client_id']);
+ // Override Tab Title // No Sanitizing needed as this var will opnly be used in the tab title
+ $page_title = $row['contact_name'];
+
// Check to see if Contact belongs to client
if($contact_client_id !== $client_id) {
exit();
diff --git a/client_document_details.php b/client_document_details.php
index a6839a81..f44b8e80 100644
--- a/client_document_details.php
+++ b/client_document_details.php
@@ -37,6 +37,9 @@ $document_folder_id = intval($row['document_folder_id']);
$document_parent = intval($row['document_parent']);
$document_client_visible = intval($row['document_client_visible']);
+// Override Tab Title // No Sanitizing needed as this var will opnly be used in the tab title
+$page_title = $row['document_name'];
+
?>
diff --git a/functions.php b/functions.php
index f2d8ef83..ff88542f 100644
--- a/functions.php
+++ b/functions.php
@@ -50,7 +50,8 @@ function key32gen()
function nullable_htmlentities($unsanitizedInput)
{
- return htmlentities($unsanitizedInput ?? '');
+ //return htmlentities($unsanitizedInput ?? '');
+ return htmlspecialchars($unsanitizedInput, ENT_QUOTES, 'UTF-8');
}
function initials($str)
diff --git a/includes/footer.php b/includes/footer.php
index 949d3001..2d7a3247 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -13,6 +13,9 @@ if (str_contains(basename($_SERVER["PHP_SELF"]), "admin_")) { ?>
+
+
+
diff --git a/includes/inc_all.php b/includes/inc_all.php
index d2280fec..9399ea56 100644
--- a/includes/inc_all.php
+++ b/includes/inc_all.php
@@ -1,13 +1,10 @@
Tell your admin: Your role does not have admin access.");
}
-
require_once "header.php";
-
require_once "top_nav.php";
-
require_once "admin_side_nav.php";
-
require_once "inc_wrapper.php";
-
require_once "inc_alert_feedback.php";
-
require_once "filter_header.php";
-
require_once "app_version.php";
diff --git a/includes/inc_all_client.php b/includes/inc_all_client.php
index 064ec7af..2588e9fa 100644
--- a/includes/inc_all_client.php
+++ b/includes/inc_all_client.php
@@ -1,10 +1,9 @@
-
-
-
diff --git a/includes/inc_all_reports.php b/includes/inc_all_reports.php
index 51bb53ad..37354007 100644
--- a/includes/inc_all_reports.php
+++ b/includes/inc_all_reports.php
@@ -1,24 +1,16 @@
= 2 && empty($ticket_closed_at)) {
require_once "modals/ticket_edit_modal.php";
-
require_once "modals/ticket_assign_modal.php";
-
require_once "modals/ticket_edit_contact_modal.php";
-
require_once "modals/ticket_edit_asset_modal.php";
-
require_once "modals/ticket_edit_vendor_modal.php";
-
require_once "modals/ticket_add_watcher_modal.php";
-
require_once "modals/ticket_edit_priority_modal.php";
-
require_once "modals/ticket_change_client_modal.php";
-
require_once "modals/ticket_edit_schedule_modal.php";
-
require_once "modals/ticket_merge_modal.php";
}