diff --git a/plugins/http-files/src/file_provider.vala b/plugins/http-files/src/file_provider.vala index fd952b6b..8275a806 100644 --- a/plugins/http-files/src/file_provider.vala +++ b/plugins/http-files/src/file_provider.vala @@ -142,10 +142,11 @@ public class FileProvider : Dino.FileProvider, Object { } private string extract_file_name_from_url(string url) { - string ret = Uri.unescape_string(url.substring(url.last_index_of("/") + 1)); + string ret = url; if (ret.contains("#")) { ret = ret.substring(0, ret.last_index_of("#")); } + ret = Uri.unescape_string(ret.substring(ret.last_index_of("/") + 1)); return ret; }