summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-09-04 18:55:31 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-09-04 18:55:31 -0400
commit22000303106e6428df331bc98da773d49fa6cec7 (patch)
tree6c426f7497aad2dd20cf9090f2a816662e28ae6f
parentbe54be0d14db49f655f610bda8d365c7e1c88fc0 (diff)
downloadbrdo-22000303106e6428df331bc98da773d49fa6cec7.tar.gz
brdo-22000303106e6428df331bc98da773d49fa6cec7.tar.bz2
Issue #2277281 by dobe, amitgoyal, michaelfavia, er.pushpinderrana, dcam | drumm: Increase the maximum number of characters on the file field allowed extensions setting from 128 to 256.
-rw-r--r--modules/file/file.field.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc
index 59b547a77..b26d7e457 100644
--- a/modules/file/file.field.inc
+++ b/modules/file/file.field.inc
@@ -92,6 +92,7 @@ function file_field_instance_settings_form($field, $instance) {
'#description' => t('Separate extensions with a space or comma and do not include the leading dot.'),
'#element_validate' => array('_file_generic_settings_extensions'),
'#weight' => 1,
+ '#maxlength' => 256,
// By making this field required, we prevent a potential security issue
// that would allow files of any type to be uploaded.
'#required' => TRUE,