Special:Version: License with URL is wrapped with another URL
Closed, ResolvedPublicBUG REPORT

Description

Summary

The Special:Version page wraps the license for extensions in a URL to Special:Version/License/<name> where the name is the extension. However, if the license name includes a URL this causes a a tag to be wrapped inside of an a tag which isn't valid HTML

Steps to reproduce

  1. Install an extension that uses a URL in its license (such as https://gitlab.com/organicdesign/TreeAndMenu/-/blob/63673e85634882bd4b9b97902eda5c86052e95ee/extension.json#L10)
  2. Load Special:Version
  3. See that the license HTML has the URL in the license wrapped inside the link to Special:Version/License/<name>

Acceptance criterion

  • Treat the license name as text and not wikitext

Event Timeline

Change #1318691 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/core@master] SpecialVersion: Don't wrap license with URL with another URL

https://gerrit.wikimedia.org/r/1318691

Change #1318691 merged by jenkins-bot:

[mediawiki/core@master] SpecialVersion: Don't parse license-name as wikitext

https://gerrit.wikimedia.org/r/1318691

Dreamy_Jazz claimed this task.
Dreamy_Jazz updated the task description. (Show Details)
Dreamy_Jazz updated the task description. (Show Details)