Closed jakubmisek closed 2 years ago
Since rawurlencode() in PeachPie uses Uri.EscapeUriString(), the result actually complies with RFC 2396;
rawurlencode()
It needs to be RFC 3986 always (not depending on web.config or other configuration).
Test:
<?php print_r(rawurlencode('/+='));
Expected: %2F%2B%3D Actual: /+=
%2F%2B%3D
/+=
The resulting value is usually used on raw HTTP streams (such as POST) resulting in failed requests.
Since
rawurlencode()
in PeachPie uses Uri.EscapeUriString(), the result actually complies with RFC 2396;It needs to be RFC 3986 always (not depending on web.config or other configuration).
Test:
Expected:
%2F%2B%3D
Actual:/+=
The resulting value is usually used on raw HTTP streams (such as POST) resulting in failed requests.