Skip to content
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

feat: restrict obfuscation to font core media types #1382

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

rdeltour
Copy link
Member

@rdeltour rdeltour commented Dec 1, 2022

EPUB 3.3 explicitly restricts the font obfuscation algorithm to resources being declared as dont Core Media Types.

This commit:

  • registers obfuscated resources to the OCFPackage when parsing the encyrption.xml file (with parsing location)
  • checks that if obfuscated resources are declared in Package Documents, they have a font core media type
  • add and tweak tests

Fix #1291

EPUB 3.3 explicitly restricts the font obfuscation algorithm to resources
being declared as dont Core Media Types.

This commit:
- registers obfuscated resources to the OCFPackage when parsing the
  `encyrption.xml` file (with parsing location)
- checks that if obfuscated resources are declared in Package Documents,
  they have a font core media type
- add and tweak tests

Fix #1291
@rdeltour rdeltour added this to the v5.0.0-beta milestone Dec 1, 2022
@rdeltour rdeltour self-assigned this Dec 1, 2022
Base automatically changed from feat/remote-resources to release/v5.0.0 December 5, 2022 12:51
@rdeltour rdeltour merged commit 429cec3 into release/v5.0.0 Dec 5, 2022
@rdeltour rdeltour deleted the feat/obfuscation branch December 5, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants