[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60494] Percent character in filename gets escaped twice
From: |
Kode Charlie |
Subject: |
[bug #60494] Percent character in filename gets escaped twice |
Date: |
Sat, 15 May 2021 07:34:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 |
Follow-up Comment #1, bug #60494 (project wget):
system: macOS Big Sur v. 11.2.3
wget: master branch
Offending logic from *./src/url.c* is shown below. I believe the issue is in
*iconv()*.
if (iconv (cd, (ICONV_CONST char **) &fname, &inlen, &s, &outlen) == 0
&& iconv (cd, NULL, NULL, &s, &outlen) == 0)
{
*(converted_fname + len - outlen - done) = '\0';
iconv_close (cd);
DEBUGP (("Converted file name '%s' (%s) -> '%s' (%s)\n",
orig_fname, from_encoding, converted_fname, to_encoding));
xfree (orig_fname);
return converted_fname;
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60494>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #60494] Percent character in filename gets escaped twice, anonymous, 2021/05/01
- [bug #60494] Percent character in filename gets escaped twice,
Kode Charlie <=
- [bug #60494] Percent character in filename gets escaped twice, Kode Charlie, 2021/05/15
- [bug #60494] Percent character in filename gets escaped twice, Kode Charlie, 2021/05/15
- [bug #60494] Percent character in filename gets escaped twice, Kode Charlie, 2021/05/15
- [bug #60494] Percent character in filename gets escaped twice, Tim Ruehsen, 2021/05/16
- [bug #60494] Percent character in filename gets escaped twice, Petr Pisar, 2021/05/16
- [bug #60494] Percent character in filename gets escaped twice, Kode Charlie, 2021/05/16
- [bug #60494] Percent character in filename gets escaped twice, Tim Ruehsen, 2021/05/22