diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-19 21:07:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-19 21:07:12 -0400 |
commit | 3e992b758b0d7e96f369372340b95d8ef4302aae (patch) | |
tree | 7f7447795fb8fc33e0db0afafa0e21cf725f726e /IkiWiki | |
parent | fd9393ef8575ad4a8966ae7f5310aab688dedf48 (diff) | |
download | ikiwiki-3e992b758b0d7e96f369372340b95d8ef4302aae.tar ikiwiki-3e992b758b0d7e96f369372340b95d8ef4302aae.tar.gz |
Fix issue with utf-8 in wikiname breaking session cookies, by entity-encoding the wikiname in the session cookie.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index dac522eea..4399d0dcb 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -278,9 +278,9 @@ sub check_banned ($$) { #{{{ sub cgi_getsession ($) { #{{{ my $q=shift; - eval q{use CGI::Session}; + eval q{use CGI::Session; use HTML::Entities}; error($@) if $@; - CGI::Session->name("ikiwiki_session_".encode_utf8($config{wikiname})); + CGI::Session->name("ikiwiki_session_".encode_entities($config{wikiname})); my $oldmask=umask(077); my $session = eval { |