-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallowing file URLs #2324
Comments
The issue was discussed in a meeting on 2022-06-09 List of resolutions:
View the transcript1. Disallowing File URLs.See github issue epub-specs#2324. See github pull request epub-specs#2329. Dave Cramer: I can't think of good reason to have these, but a lot of good reasons to prohibit them. Brady Duga: yes, sounds good. File URLs seem to be interoperable. What file would you load from an epub?. Ben Schroeter: most common thing i've seen is youtube videos, but those aren't file URLs, right?. Brady Duga: depends on how the epub is created. Could be a link to youtube, or link to external resource that plays in your epub, but neither of those are file URLs. Dave Cramer: file URL goes against idea that epub should be self contained, you don't want epub author to look at your files in your local machine. Ben Schroeter: when Play gets file URL what happens?. Brady Duga: probably gets stripped on the server, but probably gets intercepted and rejected. We might try to open it in the browser, but then the browser would probably reject it. Dave Cramer: I propose we forbid file URLs. Brady Duga: there's already a PR open for that.
|
(This is a spin-off of a discussion in #2266, also raised during the discussion with @GJFR at the EPUB meeting; raising it as a separate issue for a better tracking)
At the moment, the only reference to file: URLs in the spec is a SHOULD NOT for the
href
attribute in the package file. These urls are obvious security issues for content documents that are supposed to be 'installed' in various places, and there is no reason to use them. The proposal is to explicitly disallow their usage in EPUB.The text was updated successfully, but these errors were encountered: