[ticket/10922] Replaced urlencode() with rawurlencode()

RFC-6068 asks for percent-encoding so that seems more correct.
Not sure about that one.

PHPBB3-10922
This commit is contained in:
JoshyPHP 2015-04-28 02:53:40 +02:00
parent 102b6c2df3
commit 3f54fd49b5
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ class factory implements \phpbb\textformatter\cache_interface
'b' => '[B]{TEXT}[/B]',
'code' => '[CODE]{TEXT}[/CODE]',
'color' => '[COLOR={COLOR}]{TEXT}[/COLOR]',
'email' => '[EMAIL={EMAIL;useContent} subject={TEXT;optional;postFilter=urlencode} body={TEXT;optional;postFilter=urlencode}]{TEXT}[/EMAIL]',
'email' => '[EMAIL={EMAIL;useContent} subject={TEXT;optional;postFilter=rawurlencode} body={TEXT;optional;postFilter=rawurlencode}]{TEXT}[/EMAIL]',
'flash' => '[FLASH={NUMBER1},{NUMBER2} width={NUMBER1;postFilter=#flashwidth} height={NUMBER2;postFilter=#flashheight} url={URL;useContent} /]',
'i' => '[I]{TEXT}[/I]',
'img' => '[IMG src={IMAGEURL;useContent}]',

View file

@ -1,3 +1,3 @@
<a href="mailto:user@example.org">user@example.org</a><br>
<a href="mailto:user@example.org">...</a><br>
<a href="mailto:user@example.org?subject=Hello&amp;body=Sent+from+phpBB">user@example.org</a><br>
<a href="mailto:user@example.org?subject=Hello&amp;body=Sent%20from%20phpBB">user@example.org</a><br>