Skip to content

Detect and recover malformed inline data URLs missing the data: scheme #420

Todo

Description

@Sriram-Nambiar

Follow-up from openzim/warc2zim#472.

In https://farm.openzim.org/pipeline/a2e68a52-d534-4511-9ad5-26b1fa073e70/debug, pages contained inline images/links missing the data: scheme prefix (e.g. image/jpeg;base64,...). Because data: is missing, zimscraperlib treats them as normal relative HTTP URLs instead of inline data and rewrites them as broken ZIM/HTTP paths.

When a link or src looks like inline base64 data missing data: (even if already prefixed by an HTTP path), zimscraperlib should detect it and recover it as a valid inline data: URI instead of rewriting it as a ZIM path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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