Sanitizer::escapeId: Decode entity before replacing spaces
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 1 Jul 2014 20:58:41 +0000 (22:58 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 28 Aug 2014 05:18:28 +0000 (05:18 +0000)
commit89ad2617e3c0bb0587c69cf15ab7def2807492da
tree0a6f640f1f42df90424e0912ceca16e886e91e95
parent664e96256623df3928463dcbcceaf8b54388ad62
Sanitizer::escapeId: Decode entity before replacing spaces

Having &#32; inside header should not lead to ids with a plus.

This was correct when using the experimental ids, because there the
decode was done first and then spaces were replaced by underscores.
The non-experimental way replaced spaces with underscores and then
decoded the &#32;, which results in a space that is URL-encoded to +.

Added also a parser test for headers with space, plus and underscore as
entity.

Change-Id: I455e38c7a9777a42a5cef2dc80bebb3c19ac4700
includes/Sanitizer.php
tests/parser/parserTests.txt