summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-09-10 07:38:52 +0000
committerDries Buytaert <dries@buytaert.net>2006-09-10 07:38:52 +0000
commite4b063e1efb303f8939e5cef06e977b203b64fd2 (patch)
tree7cf08cc67b16dafb1ed3a9747e6efe8eb28fd61b
parentdbc5646f8bea89a89f2e56f2f92505f5cb5d5694 (diff)
downloadbrdo-e4b063e1efb303f8939e5cef06e977b203b64fd2.tar.gz
brdo-e4b063e1efb303f8939e5cef06e977b203b64fd2.tar.bz2
- Patch #83297 by yched et al: prevent double escaping of filenames in upload module.
(Needs to be backported, I think)
-rw-r--r--modules/upload/upload.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 42ab9e182..9595dc7df 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -586,8 +586,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));
}
}