diff --git a/pack/pack.go b/pack/pack.go index 4bccb5db..9fd28be6 100644 --- a/pack/pack.go +++ b/pack/pack.go @@ -229,7 +229,7 @@ func encryptEPUBResource(compressor *flate.Writer, compress bool, encrypter cryp data.KeyInfo.RetrievalMethod.URI = "license.lcpl#/encryption/content_key" data.KeyInfo.RetrievalMethod.Type = "http://readium.org/2014/01/lcp#EncryptedContentKey" - // espace the path before using it as a uri + // escape the path before using it as a uri data.CipherData.CipherReference.URI = xmlenc.URI(xmlenc.ResourcePathEscape(file.Path)) // declare to the reading software that the content is compressed before encryption