-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Open all files with /files
path except for .html
and .svg`
#2449
Conversation
@takluyver Can you review? |
@minrk @rgbkrk do you know of any file types other than html and svg that we should be displaying in the iframe? |
It's probably best to avoid a 'not_safe' blacklist, because it's easy to miss things (like the many synonyms for html) instead having a 'safe' list for things that can be trusted to be displayed raw. It seems like it makes more sense to specify a list of things that don't work in the iframe (are there examples other than PDF?) |
I updated so that |
Isn't that the same blacklisting approach just with the name 'viewable' in place of 'not_safe'? I see |
I have updated this PR. The way it works now:
|
Closes #2404