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

merge-requests/26/head
Dries Buytaert 2010-05-09 19:34:26 +00:00
parent eafab3f4f0
commit c5c04c1644
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}