summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-09 19:34:26 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-09 19:34:26 +0000
commitc5c04c1644e1b812de253eca9917b372151220b7 (patch)
tree0018ccfdfd859fb4c7432a6411aabb919b8e3426
parenteafab3f4f06ff86dda2bdb033f3ad28b48279278 (diff)
downloadbrdo-c5c04c1644e1b812de253eca9917b372151220b7.tar.gz
brdo-c5c04c1644e1b812de253eca9917b372151220b7.tar.bz2
- Patch #794030 by c960657: Fixed File description is check_plain()'ed twice.
-rw-r--r--modules/file/file.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 9f635f9d3..350387a86 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -650,10 +650,10 @@ function theme_file_link($variables) {
// Use the description as the link text if available.
if (empty($file->description)) {
- $link_text = check_plain($file->filename);
+ $link_text = $file->filename;
}
else {
- $link_text = check_plain($file->description);
+ $link_text = $file->description;
$options['attributes']['title'] = check_plain($file->filename);
}