Wikimedia

Special:OAuth/foo doesn't parse HTML error link

When someone opens the Special:OAuth/foo page, when the OAuth client "foo" does not exist, the page shows a specific error message informing the user about that case. There's also a link to an error code, which is clickable, however, it shows plain html, as the link is being escaped.

Your task is to find a way to show the link in a proper way, meaning, that the HTML visible actually is treated as HTML.

The code is in the https://gerrit.wikimedia.org/r/admin/projects/mediawiki/extensions/OAuth repository. You need to install that extension and then you can simply open Special:OAuth/foo on your local wiki, as there shouldn't be any OAuth client registered.

Task tags

  • localisation
  • php
  • escaping

Students who completed this task

BrandonXLF

Task type

  • code Code
close

2019