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

       Web browser: ---
            Bug ID: 50288
           Summary: Fatal error when using invalid target page title
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticForms
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

If the form generates an invalid target page name, then

 $target_title = Title::newFromText( preg_replace( '/{num.*}/', $title_number,
$targetName ) );

in SF_AutoeditAPI::generateTargetName() (line 677) will return null, which will
result in a fatal error (Call to a member function on a non-object) in the
following loop.

Solution: Throw an error ("Invalid target page name $name") if
Title::newFromText() returns null.

-- 
You are receiving this mail because:
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