Last modified: 2010-05-15 16:03:32 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 13344 - Leading whitespace causes articles not to be recognized as redirects
Leading whitespace causes articles not to be recognized as redirects
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.13.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-13 13:52 UTC by Joshua C. Lerner
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

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


Attachments
Trivial patch to Title.php (484 bytes, patch)
2008-03-13 13:52 UTC, Joshua C. Lerner
Details

Description Joshua C. Lerner 2008-03-13 13:52:55 UTC
Created attachment 4710 [details]
Trivial patch to Title.php

Sometimes users inadvertently put some whitespace at the beginning of an article that is intended to be a redirect. This results in the article not being classified as a redirect in the database (page.page_is_redirect).

Reproduce by creating a redirect article with some whitespace (newline or otherwise) at the beginning. Then notice that the new article appears in Special:Uncategorizedpages (where redirects normally don't appear). Or just look at the database to see that page.page_is_redirect = 0.

Solution: trim() $text at the beginning of Title::newFromRedirect().

Trivial patch attached.
Comment 1 Aaron Schulz 2008-03-13 14:09:10 UTC
Done in r31922.

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


Navigation
Links