Page MenuHomePhabricator

action=edit&section=new strips '0' as section title
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce:

  1. edit any existing page using ?action=edit&section=new
  2. type 0 as section title (in wpSummary) and some body text
  3. save the page

Expected:
wikitext added:

== 0 ==
body text

Actual behaviour:
the section title (== 0 ==) is stripped and the body text simply is appended to the page content.

Remarks

  • While creating a page using ?action=edit&section=new the section title is not stripped
  • Same behaviour can be observed with the new discussion tool

Event Timeline

I can reproduce this locally on current git master.

Change 740292 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740292

Change 740292 merged by jenkins-bot:

[mediawiki/core@master] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740292

Change 740249 had a related patch set uploaded (by Legoktm; author: C. Scott Ananian):

[mediawiki/core@REL1_37] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740249

Change 740250 had a related patch set uploaded (by Legoktm; author: C. Scott Ananian):

[mediawiki/core@REL1_36] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740250

Change 740251 had a related patch set uploaded (by Legoktm; author: C. Scott Ananian):

[mediawiki/core@REL1_35] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740251

Change 740251 merged by jenkins-bot:

[mediawiki/core@REL1_35] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740251

Change 740249 merged by jenkins-bot:

[mediawiki/core@REL1_37] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740249

Change 740250 merged by jenkins-bot:

[mediawiki/core@REL1_36] Allow inserting new sections named '0'

https://gerrit.wikimedia.org/r/740250