diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-04-28 02:53:40 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-04-28 02:53:40 +0200 |
commit | 3f54fd49b5bf421852ceb2a54395d5ed353d2f29 (patch) | |
tree | d8624715bf7401e39d3189df5ed4a83ebdbf832e | |
parent | 102b6c2df377759de8b17f3fe6fa7366fb7385dd (diff) | |
download | forums-3f54fd49b5bf421852ceb2a54395d5ed353d2f29.tar forums-3f54fd49b5bf421852ceb2a54395d5ed353d2f29.tar.gz forums-3f54fd49b5bf421852ceb2a54395d5ed353d2f29.tar.bz2 forums-3f54fd49b5bf421852ceb2a54395d5ed353d2f29.tar.xz forums-3f54fd49b5bf421852ceb2a54395d5ed353d2f29.zip |
[ticket/10922] Replaced urlencode() with rawurlencode()
RFC-6068 asks for percent-encoding so that seems more correct.
Not sure about that one.
PHPBB3-10922
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 2 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-10922.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index a1bd43e40e..e07a1b52ca 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -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}]', diff --git a/tests/text_processing/tickets_data/PHPBB3-10922.html b/tests/text_processing/tickets_data/PHPBB3-10922.html index 0c74809377..6ca9eb0aa1 100644 --- a/tests/text_processing/tickets_data/PHPBB3-10922.html +++ b/tests/text_processing/tickets_data/PHPBB3-10922.html @@ -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&body=Sent+from+phpBB">user@example.org</a><br> +<a href="mailto:user@example.org?subject=Hello&body=Sent%20from%20phpBB">user@example.org</a><br> |