[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 12:15:11 -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 #3, bug #60494 (project wget):
I have an explanation but as yet, no fix.
In *./src/url.c*, the routine *url_unescape()* is called twice for the same
path component (ie, the basename). Since *url_unescape_1()* modifies the path
component in-place, the effect of processing:
qtwebengine-everywhere-src-5.15.2-%25231904652.patch.gz
twice is that after the first pass, the substring *%2523* is converted to
*%23*, and then after the second pass to *#*.
Hence, the resulting filename:
qtwebengine-everywhere-src-5.15.2-#1904652.patch.gz
I'm looking into a fix.
_______________________________________________________
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, 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 <=
- [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