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

             Bug #: 28577
           Summary: Allow API to test for page title validity
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Low
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: b...@mzmcbride.com
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    soxre...@gmail.com, vasi...@gmail.com
    Classification: Unclassified


The MediaWiki API should be able to be given a sample input string and return
whether the string would be a valid title. For example, the string "abc" would
return True while the string "aB{" would return False (as "{" isn't allowed in
page titles).

This would essentially be a dry-run mode of action=edit, but would allow for
some sanity checks when, for example, testing whether strings are valid
template parameter names.

Optionally, this test could check against other restrictions such as the local
title and global blacklists or the AbuseFilter to see if a specific string
matches (though this possibly opens up an attack vector).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to