aboutsummaryrefslogtreecommitdiff
path: root/gpigeon-template.cgi
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-23 14:28:20 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-06-23 14:32:18 +0100
commit3da6985b6b9598e8fb4b5f71e09c4460c23d4255 (patch)
tree0843525115c4b58ab9149ed512546ff7cc4293ef /gpigeon-template.cgi
parent3ba254bbaf0be04c237c5aae5dfcb43538202dc2 (diff)
downloadgpigeon-3da6985b6b9598e8fb4b5f71e09c4460c23d4255.tar.gz
gpigeon-3da6985b6b9598e8fb4b5f71e09c4460c23d4255.zip
Fix auto deletion flow in link-tmpl-template.cgi
- The file auto-deletion flow was *inside* the HAS_MAILSERVER check... oops, fixing that - fixing the indenting in the same file, it was a clusterfuck (still is but way less). - removed an useless for(1) in ValidCookie function in gpigeon-template.cgi. - Makefile change: I trust more the GNUPGHOME variable than the --homedir options of gpg for importing a key and creating a GPG directory at the same time.
Diffstat (limited to 'gpigeon-template.cgi')
-rwxr-xr-xgpigeon-template.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/gpigeon-template.cgi b/gpigeon-template.cgi
index 9f9dc4c..529c589 100755
--- a/gpigeon-template.cgi
+++ b/gpigeon-template.cgi
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -wT
+#! /usr/bin/perl -T
use warnings;
use strict;
@@ -26,9 +26,7 @@ sub ValidCookie {
my $login_cookiefile = "$dir/$filename.txt";
if (-e $login_cookiefile){
open my $in, '<', $login_cookiefile or die "can't read file: $!";
- for(1){
- my $cookie_line = readline $in;
- }
+ my $cookie_line = readline $in;
close $in;
if (not defined $cookie_line){
return;