Last modified: 2011-04-14 15:12:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21299, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19299 - interwikilink in comment is parsed wrong
interwikilink in comment is parsed wrong
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CodeReview (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Special...
:
Depends on:
Blocks: 24279
  Show dependency treegraph
 
Reported: 2009-06-19 19:49 UTC by Umherirrender
Modified: 2011-04-14 15:12 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Umherirrender 2009-06-19 19:49:56 UTC
The link in the comment (url) is parsed wrong as:

[https://bugzilla.wikimedia.org/show_bug.cgi?id=18989 Bug 18989]

The source is '[[bugzilla:18989|Bug 18989]]'
Comment 1 Aaron Schulz 2010-02-23 08:49:16 UTC
All [[x|...bug y...]] or [http://... ...bug x...] links have this problem too. The regexp doesn't check the context of "bug x" before replacing.
Comment 2 Krinkle 2010-11-01 16:16:12 UTC
Happends to revision links aswell


http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75795#c10705
Source:
1 link
[http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75762#code-comments r75762 CR comments.]


Output:
3 links (opening of original, rev link, rest of original).

<a href="http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75762#code-comments" class="external text" rel="nofollow"></a><a href="/wiki/Special:Code/MediaWiki/75762" title="Special:Code/MediaWiki/75762">r75762</a><a href="http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75762#code-comments" class="external text" rel="nofollow"> CR comments</a>

Atleast the parser afterwards fixes to close the first one and not have a nested anchor tag.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links