url encoding rfc 3986 conformance

From: Date: Mon, 12 May 2008 11:15:32 +0000
Subject: url encoding rfc 3986 conformance
Groups: php.internals 
Request: Send a blank email to internals+get-37603@lists.php.net to get a copy of this message
I'd like to update, or at a minimum, add an option for rawurlencode to output rfc3986 conforming data. It basically boils down to just also not encoding the "~" character. Most of the new technologies doing encoding require this and its becoming a pita to write exception code for that one character. Personally I think the function should just be updated for 3986 compliance rather than adding any parameter flags. simple change in url.c
-                       (str[y] > 'z')) {
+                       (str[y] > 'z' && str[y] != '~')) {
possibly updating urlencode as well to keep them working similarly Rob

« previous php.internals (#37603) next »