#83297 by yched et al: prevent double escaping of filenames in upload module. backported from HEAD

4.7.x
Gerhard Killesreiter 2006-09-11 00:38:00 +00:00
parent c6461918d6
commit 65458b47cd
1 changed files with 2 additions and 2 deletions

View File

@ -483,8 +483,8 @@ function theme_upload_attachments($files) {
$rows = array();
foreach ($files as $file) {
if ($file->list) {
$href = check_url(($file->fid ? file_create_url($file->filepath) : url(file_create_filename($file->filename, file_create_path()))));
$text = check_plain($file->description ? $file->description : $file->filename);
$href = $file->fid ? file_create_url($file->filepath) : url(file_create_filename($file->filename, file_create_path()));
$text = $file->description ? $file->description : $file->filename;
$rows[] = array(l($text, $href), format_size($file->filesize));
}
}