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) { '