From 144697ccc0996d3e0ec2152d6e4a305c1bf19e8a Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 21 Jan 2023 14:26:19 -0500 Subject: [PATCH] Hide Full User Agent string from Logs --- functions.php | 1 - logs.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 92a4172f..8047e645 100644 --- a/functions.php +++ b/functions.php @@ -87,7 +87,6 @@ function get_ip() { } function get_web_browser($user_browser) { - //$user_agent = $log_user_agent; $browser = "Unknown Browser"; $browser_array = array( '/msie/i' => " Internet Explorer", diff --git a/logs.php b/logs.php index 9a740c57..0e6a5f01 100644 --- a/logs.php +++ b/logs.php @@ -169,7 +169,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); - $log_user_browser
$log_user_agent"; ?> + $log_user_browser"; ?>