Do not double decode HTML entities for IDs
authorFomafix <fomafix@googlemail.com>
Mon, 2 May 2016 05:14:45 +0000 (05:14 +0000)
committerFomafix <fomafix@googlemail.com>
Tue, 12 Sep 2017 13:42:17 +0000 (15:42 +0200)
commitb6c895ddc5a2baeb04a542b6b318e33f350f4534
treec8d5ba43d71d045122c6e7da8686d3cab35b0367
parentaf09cc10883257b872308729b04242b0fe8e2fb8
Do not double decode HTML entities for IDs

* in links (T103714)
* in indicators (T104196)

This change removes the automatic Sanitizer::decodeCharReferences from
Sanitizer::escapeId and Sanitizer::escapeIdInternal. Where decoding of
HTML entities are wanted an explicit call to
Sanitizer::decodeCharReferences is added.

Explicit decode HTML entities in non local autocomments. (T104311)

Bug: T103714
Bug: T104196
Bug: T104311
Change-Id: I88e8e2077e6f5eec2b232391f7818370894a62dc
includes/Linker.php
includes/Sanitizer.php
includes/parser/Parser.php
tests/parser/parserTests.txt
tests/phpunit/includes/SanitizerTest.php