Skip to content

wiki-embed breaks protocol-relative links #10

Description

@nemobis

With wiki-embed 1.4.6, an URL which action=render outputs as

<a class="external text" href="//commons.wikimedia.org/w/index.php?title=Page">Page</a>

is stripped down to

 <a class="external text" href="Page">Page</a>

which of course doesn't exist locally and hence produces a 404 error.

I've looked into Wiki_Embed::render() and the DOMCSS rules but I couldn't find what is at fault. Am I looking in the wrong place?

Someone at some point claimed this (or similar) was a bug in PHP but then self-closed the bug: https://bugs.php.net/bug.php?id=64946

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