Last modified: 2010-05-15 15:59:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12189 - Special:Import, encoded square brackets in link texts are reconverted
Special:Import, encoded square brackets in link texts are reconverted
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.11.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-03 15:29 UTC by Christian Kirchhoff
Modified: 2010-05-15 15:59 UTC (History)
1 user (show)

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


Attachments
When I import this xml file I experience the described behaviour (1.59 KB, application/xml)
2007-12-03 15:29 UTC, Christian Kirchhoff
Details

Description Christian Kirchhoff 2007-12-03 15:29:48 UTC
Created attachment 4402 [details]
When I import this xml file I experience the described behaviour

If there are links in an import file, and the link text should contain square brackets, they have to be encoded like this:
[http://www.test.de/test%20%5B1%5D Test [1]]

But when I import such an xml file, the square brackets are converted (not the url encoded ones in the link, but the other ones in the link text), resulting in this:
[http://www.test.de/test%20%5B1%5D Test [1]]

This, of course, breaks the link and changes the way the article page is rendered.
Comment 1 Tim Starling 2007-12-04 00:34:30 UTC
Use [1] . Wikitext in an XML document should be fully encoded, so any instance of "&" in the wikitext will become "&" in the XML.
Comment 2 Christian Kirchhoff 2007-12-04 10:02:02 UTC
Thank you very much, Tim!

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


Navigation
Links