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

       Web browser: ---
             Bug #: 33525
           Summary: clearTagHooks doesn't clear function hooks
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 9805
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9805
patch

Parser:clearTagHooks clears mTagHooks and resets mStripList to the default.
However, it does not clear mFunctionTagHooks.

setFunctionTagHook adds a function tag to the strip list, so this creates an
inconsistent state, where the tag is present in mFunctionTagHooks, but not
mStripList.

As far as I can tell, clearTagHooks isn't called anywhere in core, and I don't
know what its purpose is, but just clearing function tag hooks as well in
clearTagHooks seems like a sensible fix.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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