]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
emailauth, passwordauth: Avoid leaving cgisess_* files in the system temp directory.
authorJoey Hess <joeyh@joeyh.name>
Wed, 23 Aug 2017 17:13:23 +0000 (13:13 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 23 Aug 2017 17:13:23 +0000 (13:13 -0400)
commite3dfb26b904edb4645fee4b43e93a6d54e2e8041
treec350e1fd5bd8739f92d865e1ab56ab9d72b016c7
parent056349a7f0cf3dd470cdd9633b7fe955fb03268f
emailauth, passwordauth: Avoid leaving cgisess_* files in the system temp directory.

Due to the use/abuse of CGI::Session to generate a token for the login
process, a new session database was created for each login, and left behind
afterwards. While each file is small, with many logings this could bloat
the size of /tmp significantly. Fixed by making CGI::Session write to
/dev/null, since there does not seem to be a way to entirely prevent the
writing.

This commit was sponsored by Henrik Riomar on Patreon.
IkiWiki/Plugin/emailauth.pm
IkiWiki/Plugin/passwordauth.pm
debian/changelog