From: Junio C Hamano Date: Sat, 07 Oct 2006 05:08:03 GMT Subject: Re: gitweb: using quotemeta Message-ID: <7vr6xkzpak.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200610061438.50965.jnareb@gmail.com> Jakub Narebski writes: > I'd rather add (and use) separate subroutine for quoting/escaping > values in HTTP headers, or to be more exact for the filename part > of HTTP header "Content-Disposition:". This way if we decide to > not replace all characters outside US-ASCII in suggested filename > to save with '?', but only qoublequote '"' and linefeed '\n' characters, > or even implement RFC 2047 to do the encoding (of course if browsers > can read it), we could do this in one place. Sounds sane. quote_filename?