lib/epub/publication/package/manifest.rb in epub-parser-0.2.1 vs lib/epub/publication/package/manifest.rb in epub-parser-0.2.2

- old
+ new

@@ -98,11 +98,14 @@ @fallback_chain ||= traverse_fallback_chain([]) end # full path in archive def entry_name + dummy_root_iri = Addressable::URI.parse('http://example.net/') # FIXME: Use constant rootfile = manifest.package.book.ocf.container.rootfile.full_path - Addressable::URI.unescape(rootfile + href.normalize.request_uri) + en = Addressable::URI.unencode((dummy_root_iri + rootfile + href).normalize.request_uri) + en.slice!(0) if en.start_with? '/' + en end def read raw_content = manifest.package.book.container_adapter.read(manifest.package.book.epub_file, entry_name)