Allow change $NBOFLASTUPDATELOOKUPTOSAVE via CGI/CLI arguments (Closes: #600225).
authorSergey B Kirpichev <skirpichev@gmail.com>
Wed, 16 Mar 2011 16:08:54 +0000 (19:08 +0300)
committerSergey B Kirpichev <skirpichev@gmail.com>
Wed, 16 Mar 2011 16:08:54 +0000 (19:08 +0300)
debian/patches/2002_nboflastupdatelookuptosave.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/2002_nboflastupdatelookuptosave.patch b/debian/patches/2002_nboflastupdatelookuptosave.patch
new file mode 100644 (file)
index 0000000..6923aa1
--- /dev/null
@@ -0,0 +1,27 @@
+Author: Sergey B Kirpichev <skirpichev@gmail.com>
+Description: Allow change $NBOFLASTUPDATELOOKUPTOSAVE
+ via CGI/CLI arguments.
+Bug-Debian: http://bugs.debian.org/600225
+
+---
+ wwwroot/cgi-bin/awstats.pl |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/wwwroot/cgi-bin/awstats.pl
++++ b/wwwroot/cgi-bin/awstats.pl
+@@ -16520,6 +16520,7 @@
+       'showsteps',          'showdropped',
+       'showcorrupted',      'showunknownorigin',
+       'showdirectorigin',   'limitflush',
++    'nboflastupdatelookuptosave',
+       'confdir',            'updatefor',
+       'hostfilter',         'hostfilterex',
+       'urlfilter',          'urlfilterex',
+@@ -16735,6 +16736,7 @@
+       foreach ( split( /,/, $2 ) ) { $NoLoadPlugin{ &Sanitize( "$_", 1 ) } = 1; }
+ }
+ if ( $QueryString =~ /(^|&|&amp;)limitflush=(\d+)/i ) { $LIMITFLUSH = $2; }
++if ( $QueryString =~ /(^|&|&amp;)nboflastupdatelookuptosave=(\d+)/i ) { $NBOFLASTUPDATELOOKUPTOSAVE = $2; }
+ # Get/Define output
+ if ( $QueryString =~
index e3f355e..16d70b4 100644 (file)
@@ -9,3 +9,4 @@
 1014_websec_robot.patch
 1015_awstats-tt-bg.txt.patch
 2001_awstatsprog_path.patch
+2002_nboflastupdatelookuptosave.patch