From b80414684c97b6c406715eac10815f6be40893b2 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Sat, 17 Feb 2018 01:06:09 +0100 Subject: [PATCH] [BUGFIX] Fix non-translated email content closes #152 Signed-off-by: Jerome Jutteau --- lib/functions.js.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions.js.php b/lib/functions.js.php index 983736f..8447551 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -145,11 +145,11 @@ function show_link (reference, delete_code, crypt_key, date) // Email link var filename = document.getElementById('file_select').files[0].name; - var b = encodeURIComponent("Download file \"" + filename + "\":") + "%0D"; + var b = encodeURIComponent(" \"" + filename + "\":") + "%0D"; b += encodeURIComponent(web_root + download_link_href) + "%0D"; if (false == isEmpty(date)) { - b += "%0D" + encodeURIComponent("This file will be available until " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D"; + b += "%0D" + encodeURIComponent(": " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D"; document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename); } -- 2.34.1