From 6ab6b76c8f2250333d90c2687601ce3299f442d1 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 7 Feb 2018 22:10:41 +0100 Subject: [PATCH] Fix #65 --- lib/Lutim/Controller.pm | 2 +- themes/default/templates/partial/lutim.js.ep | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Lutim/Controller.pm b/lib/Lutim/Controller.pm index 61a7885..e117345 100644 --- a/lib/Lutim/Controller.pm +++ b/lib/Lutim/Controller.pm @@ -534,7 +534,7 @@ sub short { } my $test; - if (defined($touit)) { + if (defined($touit) && $image->mediatype !~ m/svg/) { $test = 1; my $short = $image->short; $short .= '/'.$key if (defined($key)); diff --git a/themes/default/templates/partial/lutim.js.ep b/themes/default/templates/partial/lutim.js.ep index 752a623..4cb6825 100644 --- a/themes/default/templates/partial/lutim.js.ep +++ b/themes/default/templates/partial/lutim.js.ep @@ -172,9 +172,9 @@ function buildMessage(success, msg) { '
', '', '<%= l('Something bad happened') %>
', - msg.filename, + cleanName(msg.filename, false), '
', - msg.msg, + cleanName(msg.msg, false), '
' ].join(''); }