From a4599dde03c31fec1000c8358d6daa04e1801139 Mon Sep 17 00:00:00 2001 From: Gervase Markham Date: Thu, 8 Dec 2011 12:47:39 +0000 Subject: Expand max length of attachment filename from 100 to 255 characters. r=glob, a=LpSolit. https://bugzilla.mozilla.org/show_bug.cgi?id=705078 --- Bugzilla/Constants.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index b63d222b1..1df41fec5 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -182,6 +182,7 @@ use Memoize; MAX_FREETEXT_LENGTH MAX_BUG_URL_LENGTH MAX_POSSIBLE_DUPLICATES + MAX_ATTACH_FILENAME_LENGTH PASSWORD_DIGEST_ALGORITHM PASSWORD_SALT_LENGTH @@ -563,6 +564,11 @@ use constant MAX_BUG_URL_LENGTH => 255; # will return. use constant MAX_POSSIBLE_DUPLICATES => 25; +# Maximum length of filename stored in attachments table (longer ones will +# be truncated to this value). Do not increase above 255 without making the +# necessary schema changes to store longer names. +use constant MAX_ATTACH_FILENAME_LENGTH => 255; + # 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