mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Prevent opening files
This commit is contained in:
parent
47a5f50056
commit
d9db3b6f7c
1 changed files with 5 additions and 0 deletions
|
@ -1108,6 +1108,11 @@ public class Helper {
|
|||
" isInstalled=" + isInstalled(context, open_with_pkg) +
|
||||
" hasCustomTabs=" + hasCustomTabs(context, uri, open_with_pkg));
|
||||
|
||||
if ("file".equals(uri.getScheme())) {
|
||||
reportNoViewer(context, uri, new SecurityException("Cannot open files"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (UriHelper.isHyperLink(uri))
|
||||
uri = UriHelper.fix(uri);
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue