From c6c54c2e4235783544c44c08e4e55d4057556588 Mon Sep 17 00:00:00 2001 From: Koosha Khajeh Moogahi Date: Sat, 18 Aug 2012 19:06:44 +0200 Subject: Bug 187753: Specify a maximum length for quips (512 characters) r/a=LpSolit --- Bugzilla/Constants.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 63242ba8a..f1141195c 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -161,6 +161,7 @@ use Memoize; MAX_BUG_URL_LENGTH MAX_POSSIBLE_DUPLICATES MAX_ATTACH_FILENAME_LENGTH + MAX_QUIP_LENGTH PASSWORD_DIGEST_ALGORITHM PASSWORD_SALT_LENGTH @@ -556,6 +557,9 @@ use constant MAX_POSSIBLE_DUPLICATES => 25; # necessary schema changes to store longer names. use constant MAX_ATTACH_FILENAME_LENGTH => 255; +# Maximum length of a quip. +use constant MAX_QUIP_LENGTH => 512; + # This is the name of the algorithm used to hash passwords before storing # them in the database. This can be any string that is valid to pass to # Perl's "Digest" module. Note that if you change this, it won't take -- cgit v1.2.3-24-g4f1b