From 1c623c676895fd1e72814c63a979ba8af3a95785 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Wed, 29 Jan 2014 15:39:34 +0100 Subject: [PATCH] #205 Ampersands in filenames --- app/views/dmsf_upload/upload_file.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/dmsf_upload/upload_file.html.erb b/app/views/dmsf_upload/upload_file.html.erb index e239ebea..a538310c 100644 --- a/app/views/dmsf_upload/upload_file.html.erb +++ b/app/views/dmsf_upload/upload_file.html.erb @@ -2,6 +2,7 @@ # # Copyright (C) 2011 Vít Jonáš # Copyright (C) 2012 Daniel Munn +# Copyright (C) 2014 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,5 +18,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.%> -{"original_filename":"<%= h(@tempfile.original_filename) %>", "content_type":"<%= h(@tempfile.content_type) %>", -"disk_filename":"<%= h(@disk_filename) %>"} \ No newline at end of file +{"original_filename":"<%= (@tempfile.original_filename).html_safe %>", + "content_type":"<%= (@tempfile.content_type).html_safe %>", + "disk_filename":"<%= (@disk_filename).html_safe %>"} \ No newline at end of file