display an error message if CGI::Session fails to load

master
Joey Hess 2008-05-21 15:15:11 -04:00
parent 3a753c92a7
commit 9a8a67f078
1 changed files with 1 additions and 0 deletions

View File

@ -621,6 +621,7 @@ sub cgi_getsession ($) { #{{{
my $q=shift;
eval q{use CGI::Session};
error($@) if $@;
CGI::Session->name("ikiwiki_session_".encode_utf8($config{wikiname}));
my $oldmask=umask(077);