Skip to content

Commit

Permalink
Fixed file URL encoding (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
poisdeux authored Jun 7, 2020
1 parent 6ed64bf commit 5c76064
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public String getDownloadDescrition(Context context) {
}

public String getMediaUrl(HostInfo hostInfo) {
String pathforUrl = fileName.replaceAll(" ", "%20").replaceAll("'","%27");
String pathforUrl = Uri.encode(fileName);
String credentials = (hostInfo.getPassword() == null || hostInfo.getPassword().isEmpty()) ? "" :
String.format("%s:%s@", hostInfo.getUsername(), hostInfo.getPassword());
String videoUrl = String.format("http://%s%s:%d/vfs/%s", credentials, hostInfo.getAddress(),
Expand Down

0 comments on commit 5c76064

Please sign in to comment.