X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=web%2FUtil.pm;h=8efabfb517959e15db7ad806cb2831608c5f5886;hb=e472df7a917d3bff825925937652baed188fba6f;hp=5a93ca328856cbb1c8b85f4dde90df7388c044e3;hpb=5126d9a4c1c4192dbbe0ee548ea1dcc0d961c6f5;p=mirror%2Fuserdir-ldap.git diff --git a/web/Util.pm b/web/Util.pm index 5a93ca3..8efabfb 100644 --- a/web/Util.pm +++ b/web/Util.pm @@ -119,7 +119,7 @@ sub ReadPasswordFromFile { # check to make sure the time is positive, and that the auth token # has not expired my $tdiff = (time - $time); - &HTMLError("Your authentication token has expired. Please relogin") if (($tdiff < 0) || ($tdiff > $config{authexpires})); + &HTMLError("Your authentication token has expired. Please relogin") if (($tdiff < 0) || ($tdiff > $config{authexpires})); return Decrypt($cipher, $passwd); } @@ -225,7 +225,7 @@ sub FormatLastSeen { $lastseen = (($d1 gt $d2) ? $lastseenpgp : $lastseenfrom); } - my ($date,$user,$list,$msgid) = ($lastseen =~ /^\[(.+?)\]\s+"(.+?)"\s+"(?:<(.+?)>.+?|\-)"\s+"<(.+?)>"/); + my ($date,$user,$list,$msgid) = ($lastseen =~ /^\[(.+?)\]\s+"(.+?)"\s+"(?:<(.+?)>.*?|\-)"\s+"<(.+?)>"/); $list = "on $list" if ($list); return "$date $list
 Message ID: $msgid"; }