X-Git-Url: https://git.treefish.org/fex.git/blobdiff_plain/e60096926213ce02293a261254ff065cae44c1c8..20160328:/cgi-bin/foc diff --git a/cgi-bin/foc b/cgi-bin/foc index f384784..7a180a6 100755 --- a/cgi-bin/foc +++ b/cgi-bin/foc @@ -7,6 +7,7 @@ BEGIN { ($ENV{PERLINIT}||'') =~ /(.+)/s and eval $1 } +use utf8; use Fcntl qw(:flock); use Digest::MD5 qw(md5_hex); @@ -24,7 +25,7 @@ my $error = 'F*EX operation control ERROR'; chdir $spooldir or die "$spooldir - $!\n"; -$akeydir = "$spooldir/.akeys"; +$akeydir = "$spooldir/.akeys"; $user = $id = ''; # look for CGI parameters @@ -33,7 +34,7 @@ our %PARAM; foreach my $v (keys %PARAM) { my $vv = $PARAM{$v}; # debuglog("Param: $v=\"$vv\""); - if ($v =~ /^akey$/i and $vv =~ /^(\w+)$/) { + if ($v =~ /^akey$/i and $vv =~ /^(\w+)$/) { $akey = $1; } elsif ($v =~ /^(from|user)$/i) { $user = normalize_email($vv); @@ -85,7 +86,15 @@ if ($user and $id) { # authorized login URL my $url = "$ENV{PROTO}://$ENV{HTTP_HOST}/fup/".b64("from=$user&id=$id"); pq(qq( - '

for user $user

' + '' + '

for user $user

' '' )); ($quota,$du) = check_sender_quota($user); @@ -119,7 +128,7 @@ if ($user and $id) { ' ' ' ' ' ' - ' Change your auth-ID to' + ' Change your auth-ID to' ' ' ' ' ));