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

            Bug ID: 67196
           Summary: PAGESINCATEGORY should decode HTML entities of input
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
               URL: https://www.mediawiki.org/wiki/Thread:Project:Support_
                    desk/0_doesnt_work_(allways)
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

From the linked URL:

----

{{PAGESINCATEGORY:{{PAGENAME}}}} doesn't work if {{PAGENAME}} contains ' (it
will display 0)

Its {{PAGENAME}} which is the problem, because it works if you change it with
the title in clear text.

----

This can be tested for
https://www.mediawiki.org/wiki/Category:Chris_G%27s_botclasses

Indeed, if I use {{subst:PAGENAME}} and hit "show changes", I see it's being
substituted as "Chris G's botclasses".

I don't know why {{subst:PAGENAME}} is giving HTML encoded entities as output,
but that's odd. Since fixing this may break things, PAGESINCATEGORY should
check for HTML entities and decode them to check for pagename, just as it was
done in bug 35628

-- 
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