Date: Mon, 09 Apr 2012 15:24:30 -0700 From: Julian Elischer <julian@freebsd.org> To: Ed Maste <emaste@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] percent-encoding for libfetch Message-ID: <4F83619E.5060607@freebsd.org> In-Reply-To: <20120409205051.GA27392@sandvine.com> References: <20120409205051.GA27392@sandvine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F83619E.5060607>