InfoAction: Heading ID should not include # character.
authorTimo Tijhof <ttijhof@wikimedia.org>
Thu, 14 Feb 2013 09:55:36 +0000 (10:55 +0100)
committerTimo Tijhof <ttijhof@wikimedia.org>
Thu, 14 Feb 2013 09:58:21 +0000 (10:58 +0100)
commite4e67ed6556f5f6efb297b1eafca8b09a3d45a41
tree103f100444dfd71a2919d19c0a96ceb6714552fa
parent3283a2dd0aefe585d0f783db380b538f13b30279
InfoAction: Heading ID should not include # character.

It was using Parser::guessSectionNameFromWikiText, which expects
a string of wikitext (e.g. "== Foo ==") and extracts the heading
text, and from that it generates an ID, and from that it
generates an anchor link.

The extraction and anchor link are wrong and caused the output
to be <h2 id="#Foo"> instead of <h2 id="Foo">.

Follows up I702f2f13.

Bug: 44989
Change-Id: I81f67ae1ac86ed709c69f1bced970b2cbb5138db
includes/actions/InfoAction.php