CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 19:59:52 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/w3c/epubcheck.git
etag: W/"8cb138a3ac1f9c5fd70380b8550942c4"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=ZQ9e1w76cT5vhoXNhBRrFhijSnCKNsYx4JyRnOox12VnF37CWewKCoCBNMs%2FOexhwDWqF%2FZqwRIpqEIcHPqcHA7FWhJwmtX3hq7v6SdkNE5NHJlzRDn6JSmJGcotK7ztgCwcEoIXESogWNL%2BNqO%2BjXFAyQS7HnX8kClMfz9VEXdyIm%2FlsozyQnP3YFtJxyyl%2FWBayYlLg%2Fo685gcQHSYYrXnYJUxTsvGoIdZQbm95T2BUV7T0IQ1dbn7i6iCaHchdvgnalQ8o0MFN6SXX%2F6vuw%3D%3D--nHqeFUDuKiCNuFzv--2t5sJoxO4lEL%2BenOw9MVJg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.189589888.1760126391; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 19:59:51 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 19:59:51 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D2A4:3B926C:73115:9A5A2:68E965B7
feat: restrict obfuscation to font core media types · w3c/epubcheck@a229edf · GitHub
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/MessageId.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/ocf/EncryptionHandler.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/ocf/OCFChecker.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/ocf/OCFPackage.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/opf/OPFHandler.java
Copy file name to clipboardExpand all lines: src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties
Copy file name to clipboardExpand all lines: src/test/resources/epub3/container-publication.feature
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit a229edf
committed
feat: restrict obfuscation to font core media types
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 #12911 parent 73fe57c commit a229edfCopy full SHA for a229edf
File tree
Expand file treeCollapse file tree
29 files changed
+141
-23
lines changedFilter options
- src
- main
- java/com/adobe/epubcheck
- messages
- ocf
- opf
- resources/com/adobe/epubcheck/messages
- test/resources/epub3
- files/epub
- ocf-encryption-unknown-valid
- EPUB
- META-INF
- ocf-obfuscation-not-cmt-error
- EPUB
- META-INF
- ocf-obfuscation-not-font-error
- EPUB
- META-INF
- ocf-obfuscation-valid/EPUB
Expand file treeCollapse file tree
29 files changed
+141
-23
lines changedCollapse file: src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java
src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
| 305 | + | |
305 | 306 |
| |
306 | 307 |
| |
307 | 308 |
| |
|
Collapse file: src/main/java/com/adobe/epubcheck/messages/MessageId.java
src/main/java/com/adobe/epubcheck/messages/MessageId.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/MessageId.java+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
296 | 296 |
| |
297 | 297 |
| |
298 | 298 |
| |
| 299 | + | |
299 | 300 |
| |
300 | 301 |
| |
301 | 302 |
| |
|
Collapse file: src/main/java/com/adobe/epubcheck/ocf/EncryptionHandler.java
src/main/java/com/adobe/epubcheck/ocf/EncryptionHandler.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/ocf/EncryptionHandler.java+5-3Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
28 | 32 |
| |
29 | 33 |
| |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
| 87 | + | |
86 | 88 |
| |
87 | 89 |
| |
88 | 90 |
| |
|
Collapse file: src/main/java/com/adobe/epubcheck/ocf/OCFChecker.java
src/main/java/com/adobe/epubcheck/ocf/OCFChecker.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/ocf/OCFChecker.java+25-1Lines changed: 25 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| 58 | + | |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| |||
64 | 66 |
| |
65 | 67 |
| |
66 | 68 |
| |
| 69 | + | |
67 | 70 |
| |
68 | 71 |
| |
69 | 72 |
| |
| |||
349 | 352 |
| |
350 | 353 |
| |
351 | 354 |
| |
352 |
| - | |
| 355 | + | |
353 | 356 |
| |
354 | 357 |
| |
355 | 358 |
| |
| |||
371 | 374 |
| |
372 | 375 |
| |
373 | 376 |
| |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
374 | 398 |
| |
375 | 399 |
| |
376 | 400 |
| |
|
Collapse file: src/main/java/com/adobe/epubcheck/ocf/OCFPackage.java
src/main/java/com/adobe/epubcheck/ocf/OCFPackage.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/ocf/OCFPackage.java+28-6Lines changed: 28 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
| |||
26 | 25 |
| |
27 | 26 |
| |
28 | 27 |
| |
29 |
| - | |
| 28 | + | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 | 75 |
| |
80 | 76 |
| |
81 | 77 |
| |
82 | 78 |
| |
83 | 79 |
| |
84 | 80 |
| |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
| |||
133 | 134 |
| |
134 | 135 |
| |
135 | 136 |
| |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
136 | 158 |
| |
137 | 159 |
| |
138 | 160 |
| |
|
Collapse file: src/main/java/com/adobe/epubcheck/opf/OPFHandler.java
src/main/java/com/adobe/epubcheck/opf/OPFHandler.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/opf/OPFHandler.java+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
130 | 134 |
| |
131 | 135 |
| |
132 | 136 |
| |
|
Collapse file: src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties
src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties
Copy file name to clipboardExpand all lines: src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
316 |
| - | |
| 316 | + | |
| 317 | + | |
317 | 318 |
| |
318 | 319 |
| |
319 | 320 |
| |
|
Collapse file: src/test/resources/epub3/container-publication.feature
src/test/resources/epub3/container-publication.feature
Copy file name to clipboardExpand all lines: src/test/resources/epub3/container-publication.feature+14-8Lines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 |
| - | |
| 122 | + | |
| 123 | + | |
123 | 124 |
| |
124 |
| - | |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 | 128 |
| |
| |||
180 | 181 |
| |
181 | 182 |
| |
182 | 183 |
| |
183 |
| - | |
184 |
| - | |
| 184 | + | |
| 185 | + | |
185 | 186 |
| |
186 | 187 |
| |
187 | 188 |
| |
188 |
| - | |
189 |
| - | |
190 |
| - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
191 | 192 |
| |
192 |
| - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
193 | 199 |
| |
194 | 200 |
| |
195 | 201 |
| |
|
Collapse file: src/test/resources/epub3/files/epub/ocf-encryption-unknown-valid/EPUB/content_001.xhtml
src/test/resources/epub3/files/epub/ocf-encryption-unknown-error/EPUB/content_001.xhtml renamed to src/test/resources/epub3/files/epub/ocf-encryption-unknown-valid/EPUB/content_001.xhtml
Copy file name to clipboardFile renamed without changes.
Collapse file: src/test/resources/epub3/files/epub/ocf-encryption-unknown-valid/EPUB/nav.xhtml
src/test/resources/epub3/files/epub/ocf-encryption-unknown-error/EPUB/nav.xhtml renamed to src/test/resources/epub3/files/epub/ocf-encryption-unknown-valid/EPUB/nav.xhtml
Copy file name to clipboardFile renamed without changes.
You can’t perform that action at this time.
0 commit comments