Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37603 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85720 invoked from network); 12 May 2008 11:15:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2008 11:15:45 -0000 Authentication-Results: pb1.pair.com header.from=rrichards@ctindustries.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rrichards@ctindustries.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ctindustries.net from 216.117.147.250 cause and error) X-PHP-List-Original-Sender: rrichards@ctindustries.net X-Host-Fingerprint: 216.117.147.250 unknown Received: from [216.117.147.250] ([216.117.147.250:49883] helo=ctindustries.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/60-16388-0E628284 for ; Mon, 12 May 2008 07:15:45 -0400 Received: from rob-richardss-macbook-pro.local ([67.158.171.203]) (authenticated bits=0) by ctindustries.net (8.13.8/8.13.8) with ESMTP id m4CBC5rl010771 for ; Mon, 12 May 2008 07:12:05 -0400 Message-ID: <482826D4.3010901@ctindustries.net> Date: Mon, 12 May 2008 07:15:32 -0400 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/7095/Mon May 12 05:02:42 2008 on ctindustries.net X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=4.4 tests=none autolearn=disabled version=3.1.9 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on ctindustries.net Subject: url encoding rfc 3986 conformance From: rrichards@ctindustries.net (Rob Richards) 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