From 166836ce79f710dd1f2b654fa6284053ed6fd5b5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 21 Feb 2006 07:54:49 +0000 Subject: [PATCH] =?utf8?q?[SECURITY]=20Bug=20312498:=20editparams.cgi=20do?= =?utf8?q?esn't=20check=20whether=20'whinedays'=20and=20'mostfreqthreshold?= =?utf8?q?'=20are=20numeric=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin?= =?utf8?q?=20=20r=3Dwicked=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- defparams.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/defparams.pl b/defparams.pl index 6ccde137ed..a66c44c83b 100644 --- a/defparams.pl +++ b/defparams.pl @@ -213,7 +213,8 @@ DefParam("LDAPmailattribute", DefParam("mostfreqthreshold", "The minimum number of duplicates a bug needs to show up on the most frequently reported bugs page. If you have a large database and this page takes a long time to load, try increasing this number.", "t", - "2"); + "2", + \&check_numeric); DefParam("mybugstemplate", @@ -604,7 +605,8 @@ DefParam("maxpatchsize", To accept patches of any size (subject to the limitations of your server software), set this value to zero." , "t", - '1000'); + '1000', + \&check_numeric); DefParam("maxattachmentsize" , "The maximum size (in kilobytes) of non-patch attachments. Bugzilla @@ -612,6 +614,7 @@ DefParam("maxattachmentsize" , in size. To accept attachments of any size (subject to the limitations of your server software), set this value to zero." , "t" , - '1000'); + '1000', + \&check_numeric); 1; -- 2.47.2