mirror of
git://git.codemadness.org/stagit
synced 2025-03-08 15:49:10 -05:00
do not percent-encode: ',' or '-' or '.' it looks ugly
This commit is contained in:
parent
cd5814fded
commit
df2a31c67a
@ -38,8 +38,8 @@ percentencode(FILE *fp, const char *s, size_t len)
|
||||
|
||||
for (i = 0; *s && i < len; s++, i++) {
|
||||
uc = *s;
|
||||
/* NOTE: do not encode '/' for paths */
|
||||
if (uc < '/' || uc >= 127 || (uc >= ':' && uc <= '@') ||
|
||||
/* NOTE: do not encode '/' for paths or ",-." */
|
||||
if (uc < ',' || uc >= 127 || (uc >= ':' && uc <= '@') ||
|
||||
uc == '[' || uc == ']') {
|
||||
putc('%', fp);
|
||||
putc(tab[(uc >> 4) & 0x0f], fp);
|
||||
|
4
stagit.c
4
stagit.c
@ -369,8 +369,8 @@ percentencode(FILE *fp, const char *s, size_t len)
|
||||
|
||||
for (i = 0; *s && i < len; s++, i++) {
|
||||
uc = *s;
|
||||
/* NOTE: do not encode '/' for paths */
|
||||
if (uc < '/' || uc >= 127 || (uc >= ':' && uc <= '@') ||
|
||||
/* NOTE: do not encode '/' for paths or ",-." */
|
||||
if (uc < ',' || uc >= 127 || (uc >= ':' && uc <= '@') ||
|
||||
uc == '[' || uc == ']') {
|
||||
putc('%', fp);
|
||||
putc(tab[(uc >> 4) & 0x0f], fp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user