Bug#726762: usemod-wiki: cookie expiration date is in the past

2013-10-18 Thread andrew bezella
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
--- ./wiki.pl.orig   2013-10-18 11:44:08.0 -0700
+++ ./wiki.pl2013-10-18 11:22:40.0 -0700
@@ -1348,7 +1348,7 @@
 . rev . $SetCookie{'rev'}
 . id . $SetCookie{'id'}
 . randkey . $SetCookie{'randkey'};
-$cookie .= ;expires=Fri, 08-Sep-2013 19:48:23 GMT;
+$cookie .= ;expires=Fri, 08-Sep-2025 19:48:23 GMT;
 if ($HttpCharset ne '') {
   return $q-header(-cookie=$cookie,
 -type=$type; charset=$HttpCharset);


Bug#726762: usemod-wiki: cookie expiration date is in the past

2013-10-18 Thread andrew bezella
Package: usemod-wiki
Version: 1.0.5-1
Followup-For: Bug #726762

Dear Maintainer,

my apologies, the last patch file was colorized.

uncolorized version attached.

thank you.

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
--- ./wiki.pl.orig	2013-10-18 11:44:08.0 -0700
+++ ./wiki.pl	2013-10-18 11:22:40.0 -0700
@@ -1348,7 +1348,7 @@
 . rev . $SetCookie{'rev'}
 . id . $SetCookie{'id'}
 . randkey . $SetCookie{'randkey'};
-$cookie .= ;expires=Fri, 08-Sep-2013 19:48:23 GMT;
+$cookie .= ;expires=Fri, 08-Sep-2025 19:48:23 GMT;
 if ($HttpCharset ne '') {
   return $q-header(-cookie=$cookie,
 -type=$type; charset=$HttpCharset);