DynamicPageList3 icon indicating copy to clipboard operation
DynamicPageList3 copied to clipboard

DPL does not return results from a category with an ampersand (&) in the title

Open Ligushka opened this issue 2 years ago • 1 comments

DynamicPageList3 version: 3.5.2 (d4f2f71) MediaWiki version: 1.39.2 PHP version: 8.1.16

List of steps to reproduce (step by step, including full links if applicable):

  • Create a category with an ampersand (&) in the name e.g. Brick & Mortar
  • Create some pages with category membership of Brick & Mortar
  • Create a page with the following DPL query:
<DPL>
category = Brick & Mortar
order = ascending
ordermethod = title
</DPL>

What happens?: No results are returned by the DPL query. Using _%26_ instead of & makes no difference.

What should have happened instead?: Results should have been returned containing page membership of the Brick & Mortar category.

Browser information, screenshots and other applicable information: Here is a live example: https://dmlive.wiki/wiki/Category:2015_Angels_%26_Ghosts_Tour

Page uses same DPL query which works appropriately on this similar page: https://dmlive.wiki/wiki/Category:2001_Exciter_Tour

Also, a Bugzilla report about the same issue: https://phabricator.wikimedia.org/T38071

Ligushka avatar Mar 04 '23 22:03 Ligushka

I'll take a look at this within the next couple weeks.

Universal-Omega avatar Mar 21 '23 08:03 Universal-Omega