[PATCH] percent-encoding for libfetch

From: Ed Maste <emaste_at_freebsd.org>
Date: Mon, 9 Apr 2012 16:50:51 -0400
Libfetch supports a username and password in a FTP or HTTP URL, but lacks
a method to specify '_at_' 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_at_host:port/file.bar .

Please review.  I plan to commit in the next few days.

-Ed

Received on Mon Apr 09 2012 - 18:50:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC