We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6b32e commit 3588181Copy full SHA for 3588181
pkg/lcp/lcp.go
@@ -13,6 +13,7 @@ import (
13
"fmt"
14
"io"
15
"io/fs"
16
+ "net/url"
17
"strings"
18
)
19
@@ -184,7 +185,11 @@ func listEncryptedFiles(epubRoot fs.FS) ([]FileEntry, error) {
184
185
var res []FileEntry
186
187
for _, d := range encryption.EncryptedData {
- path := d.CipherData.CipherReference.URI
188
+ path, err := url.PathUnescape(d.CipherData.CipherReference.URI)
189
+ if err != nil {
190
+ return nil, fmt.Errorf("error decoding entry path %q: %w", d.CipherData.CipherReference.URI, err)
191
+ }
192
+
193
isCompressed := false
194
var encryptionAlgorithm EncryptionAlgorithm
195
0 commit comments