[pkg-dspam-commits] r38 - trunk/debian/patches
Aurelien Labrosse
aurelien-guest at costa.debian.org
Fri Nov 4 18:36:41 UTC 2005
Author: aurelien-guest
Date: Fri Nov 4 18:36:40 2005
New Revision: 38
Added:
trunk/debian/patches/blank-history.dpatch (contents, props changed)
Modified:
trunk/debian/patches/00list
Log:
Added a patch to fix the 'empty history' bug into
webfrontend. Found at :
http://dspam.nuclearelephant.com/dspam-users/0774.html
Modified: trunk/debian/patches/00list
==============================================================================
--- trunk/debian/patches/00list (original)
+++ trunk/debian/patches/00list Fri Nov 4 18:36:40 2005
@@ -7,3 +7,4 @@
dspam-extpref-plain.dpatch
dspam-default.prefs-in_etc.dpatch
where-to-find-txt-files.dpatch
+blank-history.dpatch
Added: trunk/debian/patches/blank-history.dpatch
==============================================================================
--- (empty file)
+++ trunk/debian/patches/blank-history.dpatch Fri Nov 4 18:36:40 2005
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## blank-history-patch.dpatch by <aurelien.labrosse at free.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix empty history page.
+
+ at DPATCH@
+diff -urNad dspam-3.6.0/webui/cgi-bin/dspam.cgi /tmp/dpep.NM3wSm/dspam-3.6.0/webui/cgi-bin/dspam.cgi
+--- dspam-3.6.0/webui/cgi-bin/dspam.cgi 2005-11-04 18:31:05.949145112 +0000
++++ /tmp/dpep.NM3wSm/dspam-3.6.0/webui/cgi-bin/dspam.cgi 2005-11-04 18:31:43.318464112 +0000
+@@ -195,8 +195,8 @@
+ }
+ close (LINES);
+
+- $end = $all_lines - (($history_site-1) * $CONFIG{'HISTORY_PER_SITE'});
+- $begin = $end - $CONFIG{'HISTORY_PER_SITE'} + 1 ;
++ $end = $all_lines - (($history_site-1) * $CONFIG{'HISTORY_PER_PAGE'});
++ $begin = $end - $CONFIG{'HISTORY_PER_PAGE'} + 1 ;
+
+ if ($begin < 0) {
+ $begin = 1;
More information about the Pkg-dspam-commits
mailing list