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