From f58c52dc1d5842c30bac9c03c87d09d7d93de0a4 Mon Sep 17 00:00:00 2001 From: Stefanie Eckner Date: Sat, 30 Dec 2023 16:23:36 +0100 Subject: server: base64-encode to preserve "+" --- 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 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'); -- cgit v1.2.3-70-g09d2