From 9cfd61b715c6c35a79192c92efe9531a9d27bfd1 Mon Sep 17 00:00:00 2001 From: "dkl%redhat.com" <> Date: Thu, 3 Jan 2002 14:15:55 +0000 Subject: [PATCH] SECURITY FIX for bug 117614; Undefined subroutine &main::detaint_natural called at editusers.cgi line 739. Patch bug David D. Kilzer r=justdave,dkl --- globals.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/globals.pl b/globals.pl index 91bed7794c..cfb0325249 100644 --- a/globals.pl +++ b/globals.pl @@ -20,6 +20,7 @@ # Contributor(s): Terry Weissman # Dan Mosedale # Jake +# Bradley Baetz # Contains some global variables and routines used throughout bugzilla. @@ -835,6 +836,12 @@ sub detaint_string { $str = $1; } +sub detaint_natural { + $_[0] =~ /^(\d+)$/; + $_[0] = $1; + return (defined($_[0])); +} + # This routine quoteUrls contains inspirations from the HTML::FromText CPAN # module by Gareth Rees . It has been heavily hacked, # all that is really recognizable from the original is bits of the regular -- 2.47.2