summaryrefslogtreecommitdiff
path: root/modules/field/modules/text/text.module
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-11-01 19:25:05 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-11-01 19:25:05 -0400
commit0e3d0beddbdd170165666af4451c088a0eb330d2 (patch)
treed458f9da0cf7fe85989f76579cea497a596af572 /modules/field/modules/text/text.module
parente052539654ea7f475c9359ebaf9b0be066522d18 (diff)
downloadbrdo-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.module2
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;