Page MenuHomePhabricator

(patch available) Extension:LinkAttributes generated link caption with strings that should not be included
Closed, InvalidPublicBUG REPORT

Assigned To
None
Authored By
cory
Jul 5 2023, 2:20 AM
Referenced Files
F37129154: after_900x900.jpg
Jul 5 2023, 2:20 AM
F37129152: before_900x900.jpg
Jul 5 2023, 2:20 AM
F37129151: LinkAttributes.body.php.patch
Jul 5 2023, 2:20 AM

Description

We can use Extension:LinkAttributes to generate link with custom attributes, but it generate a caption with attributes that should not be included.

See attached images for example.

I'm tested on MediaWiki 1.39.4, PHP 8.1.20 (apache2handler) and LinkAttributes.body.php (Jun 30, 2022, newest).

I make a patch of it. Please test and merge it.

Patch:

Before (bugged):

before_900x900.jpg (900×900 px, 111 KB)

After (fixed):

after_900x900.jpg (900×900 px, 105 KB)

Event Timeline

Mainframe98 subscribed.

Is this about https://github.com/stanolacko/LinkAttributes/? If so, you should post the patch there (as a pull request or as an issue), as the extension doesn't use Gerrit for version control or Phabricator for tracking tasks.