Skip to content

Cover images and pages not found if cover href has URL encoded characters #11

@ajbanck

Description

@ajbanck

If a cover image or page has special characters in it's name PackageDocumentReader fails to set the cover.
This as PackageDocumentReader findCoverHrefs does not decode the URL-encoded hrefs to match the resources hrefs

So if the cover image href is cover%2B.png, findCoverHrefs returns 'cover%2B.png' not matching the 'cover+.png' resource

Example:
Cover image: cover+.png
opf manifest item: <item id="cover-image" href="cover%2B.png" media-type="image/png"/>

-> error 'PackageDocumentReader - Cover resource cover%2B.png not found'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions