On Tue, Nov 1, 2016 at 8:22 AM, Petr Gajdos <[email protected]> wrote:

> Hi,
>
> php 5.2 rawurlencode() converts tilde to %7E, this is not true from php
> 5.3 on, though:
>
> $ php -r 'var_dump(rawurlencode("~"));'
> string(1) "~"
> $
>
> http://php.net/manual/en/function.rawurlencode.php
>
> Following patch is perhaps needed:
> https://build.opensuse.org/package/view_file/Apache:Test/
> apache-test/apache-test-php-rawurlencode-tilde.patch


Silly follow-up question, why %7E out of urlencode() a few lines further
down?

The canonical form of '~' is '~', not '%7E', as the character is not
reserved.

Reply via email to