Bug #53187 [Opn]: urlencode and ~ encodes differently in the various versions of the functions
| From: | asphp at dsgml dot com | Date: | Wed, 27 Oct 2010 23:20:14 +0000 |
| Subject: | Bug #53187 [Opn]: urlencode and ~ encodes differently in the various versions of the functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155586@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53187&edit=1
ID: 53187
User updated by: asphp at dsgml dot com
Reported by: asphp at dsgml dot com
Summary: urlencode and ~ encodes differently in the various
versions of the functions
Status: Open
Type: Bug
Package: URL related
PHP Version: trunk-SVN-2010-10-27 (SVN)
Block user comment: N
New Comment:
rawurlencode was changed in revision 260750:
http://svn.php.net/viewvc?view=revision&revision=260750
It mentions RFC3986, but after reading it seems to me that ~ should also
be un-encoded in urlencode not just rawurlencode
Previous Comments:
------------------------------------------------------------------------
[2010-10-28 01:10:43] asphp at dsgml dot com
Description:
------------
In urlencode a ~ (tilde) is escaped.
In rawurlencode, when using ASCII a ~ is NOT escaped, but when using
EBCDIC it IS escaped.
There is no mention of ~ being special in the docs for rawurlencode or
the docs for urlencode.
And if it is special for rawurlencode, it should act the same in ASCII
and EBCDIC.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53187&edit=1