Re: Potential RFC: mb_rawurlencode() ?

From: Date: Fri, 21 Mar 2025 11:22:50 +0000
Subject: Re: Potential RFC: mb_rawurlencode() ?
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi

Am 2025-03-18 18:48, schrieb Paul M. Jones:
$iriPath = '/heads/' . rawurlencode($val) . '/tails/'); assert($iriPath === '/heads/fü bar/tails/'; // false
From my reading of RFC 3987 that result is incorrect. The space is neither listed as iunreserved, not as sub-delims, thus isn't a valid ipchar. Thus the space needs to be encoded as %20 for IRIs as well. The same mistake applies to the reference userland implementation below. Best regards Tim Düsterhus

Thread (3 messages)

« previous php.internals (#126892) next »