From fcfb23e77ed6532dfa37827421e204b415ccec9c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Nov 2024 17:31:00 +0100 Subject: sqlite3 doesn't know base64, but only hex --- computer-time-limit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-time-limit.php b/computer-time-limit.php index acc3135..12fcfeb 100644 --- a/computer-time-limit.php +++ b/computer-time-limit.php @@ -94,7 +94,7 @@ if (array_key_exists('msg', $_POST) && array_key_exists('sig', $_POST)) { $host = 'NULL'; } else { $print_host = $host; - $host = 'from_base64("' . base64_encode($host) . '")'; + $host = 'unhex(' . "'" . bin2hex($host) . "'" . ')'; } log_to_file('to_db ' . $key . ' ' . $print_host . ' ' . $von . ' ' . $bis); -- cgit v1.2.3-70-g09d2