Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Filter out protected ones from search results #648

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

myl7
Copy link
Collaborator

@myl7 myl7 commented May 18, 2022

Since excluding protected routes from searching is a long-proposed feature (#356 #618), the PR trys to provide a way to visually-only limit search results.
While perfect protection is almost impossible which is talked already at #283, some visually tricks may help to at least block "attackers" who do not even know F12.
API results though are filtered as far as the app can, but may still expose filenames of protected files, while the correspoinding protected folder path is hidden.
Further development, such as hiding the search result items that are recognized to be protected ones as long as its path is got, requires error handling fix #647 to differ different errors, so the PR is kept as a draft.

@vercel
Copy link

vercel bot commented May 18, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
onedrive-vercel-index ✅ Ready (Inspect) Visit Preview May 18, 2022 at 1:58AM (UTC)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants