diff options
author | Gervase Markham <gerv@gerv.net> | 2011-12-08 13:47:39 +0100 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2011-12-08 13:47:39 +0100 |
commit | a4599dde03c31fec1000c8358d6daa04e1801139 (patch) | |
tree | 1f01c6e68f1989ab15b782cf1fe388d049ca6389 /Bugzilla/Constants.pm | |
parent | 4badf488d539d7e50c7a156ecc65514796e6345a (diff) | |
download | bugzilla-a4599dde03c31fec1000c8358d6daa04e1801139.tar.gz bugzilla-a4599dde03c31fec1000c8358d6daa04e1801139.tar.xz |
Expand max length of attachment filename from 100 to 255 characters. r=glob, a=LpSolit.
https://bugzilla.mozilla.org/show_bug.cgi?id=705078
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 6 |
1 files changed, 6 insertions, 0 deletions
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 |