summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefanie Eckner <stefanie@eckner.net>2023-12-30 16:23:36 +0100
committerStefanie Eckner <stefanie@eckner.net>2023-12-30 16:23:36 +0100
commitf58c52dc1d5842c30bac9c03c87d09d7d93de0a4 (patch)
tree4e73aa5eee86b39694de29c47d629b3b0c7801bf
parent7bf5a06115d61e20c646a6f06523f154644eef69 (diff)
downloadcomputer-time-limit-f58c52dc1d5842c30bac9c03c87d09d7d93de0a4.tar.xz
server: base64-encode to preserve "+"
-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 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');