https://bugzilla.wikimedia.org/show_bug.cgi?id=70508

            Bug ID: 70508
           Summary: Title::newFromText should return null for strings
                    containing only a fragment
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to