On Tue, Nov 01, 2016 at 10:12:31AM -0500, William A Rowe Jr wrote: > On Tue, Nov 1, 2016 at 8:22 AM, Petr Gajdos <[email protected]> wrote: > $ 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.
Not that I can answer this question, but urlencode() seem to convert it so: http://php.net/manual/en/function.urlencode.php $ php -r 'var_dump(urlencode("~"));' string(3) "%7E" $ php --version PHP 7.0.12 (cli) ( NTS ) [..] $ Petr
