diff options
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 7ac6048c4..99edb2f50 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -142,7 +142,11 @@ use File::Basename; SAFE_PROTOCOLS + MIN_SMALLINT + MAX_SMALLINT + MAX_LEN_QUERY_NAME + MAX_MILESTONE_SIZE ); @Bugzilla::Constants::EXPORT_OK = qw(contenttypes); @@ -397,9 +401,15 @@ use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root'; # True if we're on Win32. use constant ON_WINDOWS => ($^O =~ /MSWin32/i); +use constant MIN_SMALLINT => -32768; +use constant MAX_SMALLINT => 32767; + # The longest that a saved search name can be. use constant MAX_LEN_QUERY_NAME => 64; +# The longest milestone name allowed. +use constant MAX_MILESTONE_SIZE => 20; + sub bz_locations { # We know that Bugzilla/Constants.pm must be in %INC at this point. # So the only question is, what's the name of the directory |