diff options
author | Stefanie Eckner <stefanie@eckner.net> | 2023-12-30 16:23:36 +0100 |
---|---|---|
committer | Stefanie Eckner <stefanie@eckner.net> | 2023-12-30 16:23:36 +0100 |
commit | f58c52dc1d5842c30bac9c03c87d09d7d93de0a4 (patch) | |
tree | 4e73aa5eee86b39694de29c47d629b3b0c7801bf /computer-time-limit.php | |
parent | 7bf5a06115d61e20c646a6f06523f154644eef69 (diff) | |
download | computer-time-limit-f58c52dc1d5842c30bac9c03c87d09d7d93de0a4.tar.xz |
server: base64-encode to preserve "+"
Diffstat (limited to 'computer-time-limit.php')
-rw-r--r-- | computer-time-limit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/computer-time-limit.php b/computer-time-limit.php index 2237c16..1605ad5 100644 --- a/computer-time-limit.php +++ b/computer-time-limit.php @@ -6,7 +6,7 @@ if (array_key_exists('msg', $_POST) && array_key_exists('sig', $_POST)) { $sig_file = tempnam('/tmp', 'ctl-sig'); $h = fopen($sig_file, 'w'); - fwrite($h, $_POST['sig'] . "\n"); + fwrite($h, base64_decode($_POST['sig']) . "\n"); fclose($h); $msg_file = tempnam('/tmp', 'ctl-msg'); |