T105242: U is for urlencode
authorArlo Breault <abreault@wikimedia.org>
Wed, 7 Jan 2015 20:03:02 +0000 (12:03 -0800)
committerArlo Breault <abreault@wikimedia.org>
Wed, 8 Jul 2015 22:28:21 +0000 (15:28 -0700)
commitbaddcab658195e9f2438b24f15030564e2fbd925
tree46df9da5caf41b3ced8a5fc6eab280e15a8b379c
parent2dea059bd5d93cfed59349098e97afe0d697d68d
T105242: U is for urlencode

 * Urlencode and extension tags don't play nice. The current behaviour
   is pretty broken. For example,

      {{urlencode:<pre id="one">two</pre>}}

   outputs

       <pre id="one">two</pre>

   which isn't exactly urlencoded.

 * Just drop the unexpanded content; anything more seems unsafe. There's
   precedent for this already in anchorencode.

 * Noticed in the infobox caption for enwiki/%22F%22_Is_for_Fugitive

Change-Id: I0ec5d2fdeb71f762036464f65029afd029e8b4a1
includes/parser/CoreParserFunctions.php
tests/parser/parserTests.txt