mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 23:14:27 +00:00
Don't remove characters after '#' in filename
This commit is contained in:
parent
0c8d25b7a3
commit
ce292d03e3
1 changed files with 2 additions and 1 deletions
|
@ -142,10 +142,11 @@ public class FileProvider : Dino.FileProvider, Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
private string extract_file_name_from_url(string url) {
|
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("#")) {
|
if (ret.contains("#")) {
|
||||||
ret = ret.substring(0, ret.last_index_of("#"));
|
ret = ret.substring(0, ret.last_index_of("#"));
|
||||||
}
|
}
|
||||||
|
ret = Uri.unescape_string(ret.substring(ret.last_index_of("/") + 1));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue