Last modified: 2014-09-07 20:16:51 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 T72508, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70508 - Title::newFromText should return null for strings containing only a fragment
Title::newFromText should return null for strings containing only a fragment
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.24rc
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-07 06:52 UTC by wctaiwan
Modified: 2014-09-07 20:16 UTC (History)
1 user (show)

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


Attachments

Description wctaiwan 2014-09-07 06:52:09 UTC
Title::newFromText( '#Fragment' ) returns a Title object with an empty main part and with the fragment set. Title::newFromText( '#' ) returns one with both the main part and the fragment empty. Since empty string as a title is invalid, both should really just return null.
Comment 1 Umherirrender 2014-09-07 17:10:57 UTC
See Gerrit change #106561 for a discussion

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


Navigation
Links