summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-11-05 17:31:00 +0100
committerErich Eckner <git@eckner.net>2024-11-05 17:31:00 +0100
commitfcfb23e77ed6532dfa37827421e204b415ccec9c (patch)
treebe440b4285ab2774951b956b73c889547c856d5b
parent9ac0dca2f30b37a9de08e294d52ec9926fb376c0 (diff)
downloadcomputer-time-limit-fcfb23e77ed6532dfa37827421e204b415ccec9c.tar.xz
sqlite3 doesn't know base64, but only hex
-rw-r--r--computer-time-limit.php2
1 files changed, 1 insertions, 1 deletions
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);