Commit c5c04c16 authored by Dries's avatar Dries

- Patch #794030 by c960657: Fixed File description is check_plain()'ed twice.

parent eafab3f4
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment