X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=9cbf820d5dcd336d5e0bff16d118da711462e84f;hp=7097306fecfd3795c407392164fcda012c5de1ed;hb=619f444e5eafb0f602d848ec13d70148cd90a16b;hpb=661cf41244a9be2e618b2a5fe2cf3c03a7e79009 diff --git a/remoteglot.pl b/remoteglot.pl index 7097306..9cbf820 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -67,7 +67,7 @@ select(TBLOG); $| = 1; select(STDOUT); -umask 0027; # analysis.json should not be served to users. +umask 0022; # analysis.json should not be served to users. # open the chess engine my $engine = open_engine($remoteglotconf::engine_cmdline, 'E1', sub { handle_uci(@_, 1); }); @@ -533,7 +533,7 @@ sub prettyprint_pv_no_cache { sub prettyprint_pv { my ($pos, @pvs) = @_; - my $cachekey = $pos->{'fen'} . join('', @pvs); + my $cachekey = $pos->fen() . join('', @pvs); if (exists($pos->{'prettyprint_cache'}{$cachekey})) { return @{$pos->{'prettyprint_cache'}{$cachekey}}; } else {