Prevent opening files

This commit is contained in:
M66B 2024-01-17 19:45:32 +01:00
parent 47a5f50056
commit d9db3b6f7c
1 changed files with 5 additions and 0 deletions

View File

@ -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 {