]> git.koha-community.org Git - koha.git/commit
7042 Improving cleanup_database.pl: handling quotes in a_session and interpreting...
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 17 Oct 2011 09:32:50 +0000 (11:32 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 25 Oct 2011 23:42:00 +0000 (19:42 -0400)
commitfecb2920c7a2bc2234cb3ae3d200ed19a804741e
tree247e9a6e22675455e2273e775bb0999a337fcd76
parentfa08d3b72840c3d016f1bb5e1aefd4cc64989994
7042 Improving cleanup_database.pl: handling quotes in a_session and interpreting sessdays parameter

Improving the cleanup_database.pl script in two aspects:
1) In some cases CGI::Session seems to place quotes around the atime and ctime
data in the a_session field. Two regexps now take this into account.
2) If the --sessdays parameter is used, the --sessions parameter is now
implicitly enabled too.

With thanks to Ian Bays and Tom Hanstra.

Signed-off-by: Ian Bays <ian.bays@ptfs-europe.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a7ee2993f02fb45f704c92ffdc49f840e05f5bd0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
misc/cronjobs/cleanup_database.pl