|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-10-28 01:10 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 10:00:01 2025 UTC |
In the function: php_raw_url_encode Change: if (!isalnum(str[y]) && strchr("_-.", str[y]) != NULL) { to: if (!isalnum(str[y]) && strchr("_-.~", str[y]) != NULL) { (Around line 588, add the ~ to the EBCDIC version of the function.)