summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-08-18 19:06:44 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-18 19:06:44 +0200
commitc6c54c2e4235783544c44c08e4e55d4057556588 (patch)
tree2014f444a3de707c4aa47ddbd29aa77347c54500 /Bugzilla/Constants.pm
parentca3d59070b8e470c3c82399f62e8b801db043e89 (diff)
downloadbugzilla-c6c54c2e4235783544c44c08e4e55d4057556588.tar.gz
bugzilla-c6c54c2e4235783544c44c08e4e55d4057556588.tar.xz
Bug 187753: Specify a maximum length for quips (512 characters)
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm4
1 files changed, 4 insertions, 0 deletions
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