Package: usemod-wiki Version: 1.0.5-1 Severity: normal Tags: upstream patch
Dear Maintainer, i recently noticed that i was unable to properly login to my wiki instance, and that editing user Preferences was broken. i found: http://www.usemod.com/cgi-bin/wiki.pl?WikiBugs/CookieIgnored (although i had to use the google cache to see it) the wiki.pl script hardcodes the cookie expiration date to "Fri, 08-Sep-2013 19:48:23 GMT" (this is still the date used in 1.0.5-2). the trivial attached patch changes it to 2025. thank you for your time and effort. andy -- System Information: Debian Release: 7.2 APT prefers stable-updates APT policy: (990, 'stable-updates'), (990, 'stable') Architecture: i386 (i586) Kernel: Linux 3.2.0-4-486 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages usemod-wiki depends on: ii apache2 2.2.22-13 ii apache2-mpm-prefork [httpd] 2.2.22-13 ii perl 5.14.2-21+deb7u1 usemod-wiki recommends no packages. Versions of packages usemod-wiki suggests: ii exim4-daemon-heavy [mail-transport-agent] 4.80-7 -- Configuration Files: /etc/apache2/conf.d/usemod-wiki changed [not included] /etc/usemod-wiki/config changed [not included] -- no debconf information
[1;31m--- ./wiki.pl.orig 2013-10-18 11:44:08.000000000 -0700[0;0m [1;34m+++ ./wiki.pl 2013-10-18 11:22:40.000000000 -0700[0;0m [0;32m@@ -1348,7 +1348,7 @@[0;0m [0;0m . "rev&" . $SetCookie{'rev'}[0;0m [0;0m . "&id&" . $SetCookie{'id'}[0;0m [0;0m . "&randkey&" . $SetCookie{'randkey'};[0;0m [1;31m- $cookie .= ";expires=Fri, 08-Sep-2013 19:48:23 GMT";[0;0m [1;34m+ $cookie .= ";expires=Fri, 08-Sep-2025 19:48:23 GMT";[0;0m [0;0m if ($HttpCharset ne '') {[0;0m [0;0m return $q->header(-cookie=>$cookie,[0;0m [0;0m -type=>"$type; charset=$HttpCharset");[0;0m