mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Prevent opening files
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user