summaryrefslogtreecommitdiff
path: root/computer-time-limit.php
diff options
context:
space:
mode:
Diffstat (limited to 'computer-time-limit.php')
-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');