From owner-freebsd-current@FreeBSD.ORG Mon Apr 9 22:23:49 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 835DB106566C; Mon, 9 Apr 2012 22:23:49 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 4A6798FC0C; Mon, 9 Apr 2012 22:23:49 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id q39MNlPb029771 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 9 Apr 2012 15:23:48 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4F83619E.5060607@freebsd.org> Date: Mon, 09 Apr 2012 15:24:30 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Ed Maste References: <20120409205051.GA27392@sandvine.com> In-Reply-To: <20120409205051.GA27392@sandvine.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] percent-encoding for libfetch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 22:23:49 -0000 On 4/9/12 1:50 PM, Ed Maste wrote: > Libfetch supports a username and password in a FTP or HTTP URL, but lacks > a method to specify '@' or ':' there, as they're used as URL component > separators. I discovered this issue because I have an FTP server that > uses an email address as the username, and I can't use fetch(1) or > libfetch against it. > > The attached patch adds decoding of percent-encoded usernames and > passwords, in order to use a URL like > ftp://foo%40example.com:password@host:port/file.bar . > > Please review. I plan to commit in the next few days. could you not parse the @ differently depending upon where it is? others must have covered this problem.. > -Ed > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"