diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-01 19:25:05 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-01 19:25:05 -0400 |
commit | 0e3d0beddbdd170165666af4451c088a0eb330d2 (patch) | |
tree | d458f9da0cf7fe85989f76579cea497a596af572 /modules/field/modules/text/text.module | |
parent | e052539654ea7f475c9359ebaf9b0be066522d18 (diff) | |
download | brdo-0e3d0beddbdd170165666af4451c088a0eb330d2.tar.gz brdo-0e3d0beddbdd170165666af4451c088a0eb330d2.tar.bz2 |
Issue #1790612 by carwin, Eric_A, mgifford: Fixed Sanitize the trim_length variable before printing it.
Diffstat (limited to 'modules/field/modules/text/text.module')
-rw-r--r-- | modules/field/modules/text/text.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/field/modules/text/text.module b/modules/field/modules/text/text.module index d73814faa..68fc3cb44 100644 --- a/modules/field/modules/text/text.module +++ b/modules/field/modules/text/text.module @@ -245,7 +245,7 @@ function text_field_formatter_settings_summary($field, $instance, $view_mode) { $summary = ''; if (strpos($display['type'], '_trimmed') !== FALSE) { - $summary = t('Trim length') . ': ' . $settings['trim_length']; + $summary = t('Trim length') . ': ' . check_plain($settings['trim_length']); } return $summary; |