Last modified: 2010-05-15 15:37:46 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 T4462, the corresponding Phabricator task for complete and up-to-date bug report information.
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