Last modified: 2010-05-15 15:37: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 2462 - ndash replacement breaks valid URLs
ndash replacement breaks valid URLs
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.5.x
PC All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-20 04:49 UTC by Vladimir Sizikov
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Attachments

Description Vladimir Sizikov 2005-06-20 04:49:10 UTC
For example, a valid url http://someplace/file-2005-05-10.html will be replaced
by incorrect link, where single dash '-' is replaced by ndash.

See Parser.php:214:

'/(?<=[\d])-(?=[\d])/' => "&ndash;", # N dash between numbers

Dashes between numbers should not be replaced by ndashes in URLs
Comment 1 Brion Vibber 2005-06-20 04:58:10 UTC
I've removed the automatic dash conversion for now; perhaps in some future parser that actually 
works in a clean fashion this can be done without breaking other markup left and right.

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


Navigation
Links