Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu
Hi,
usemod-wiki uses a hard-coded expiration date for its cookies. That's
silly, but fact is that's now in the past. #726762 has a patch that I
would also like to apply to the wheezy version:
usemod-wiki (1.0.5-1+deb7u1) stable; urgency=low
* Update hardcoded cookie expiration date from 2013 to 2025. Thanks to
Andrew Bezella for the patch. (Closes: #726762)
-- Christoph Berg <myon@debian.org> Sat, 19 Oct 2013 14:55:00 +0200
diff -Nru usemod-wiki-1.0.5/debian/patches/cookie-expiration usemod-wiki-1.0.5/debian/patches/cookie-expiration
--- usemod-wiki-1.0.5/debian/patches/cookie-expiration 1970-01-01 01:00:00.000000000 +0100
+++ usemod-wiki-1.0.5/debian/patches/cookie-expiration 2013-10-19 14:54:59.000000000 +0200
@@ -0,0 +1,11 @@
+--- a/wiki.pl
++++ b/wiki.pl
+@@ -1348,7 +1348,7 @@ sub GetHttpHeader {
+ . "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");
diff -Nru usemod-wiki-1.0.5/debian/patches/series usemod-wiki-1.0.5/debian/patches/series
--- usemod-wiki-1.0.5/debian/patches/series 2011-01-30 19:50:29.000000000 +0100
+++ usemod-wiki-1.0.5/debian/patches/series 2013-10-19 14:54:01.000000000 +0200
@@ -12,3 +12,4 @@
# other files
intermap
+cookie-expiration
Ok to upload?
Christoph
--
cb@df7cb.de | http://www.df7cb.de/
Attachment:
signature.asc
Description: Digital signature