stagit

git site generator
Contents

do not percent-encode: ',' or '-' or '.' it looks ugly

Hiltjo Posthuma hiltjo@codemadness.org

commit: 596eada parent: c96a114
2 files changed, 4 insertions(+), 4 deletions(-)
Mstagit-index.c+2-2
Mstagit.c+2-2
M · stagit-index.c +2, -2
 1@@ -38,8 +38,8 @@ percentencode(FILE *fp, const char *s, size_t
len)
 2
 3 for (i = 0; *s
&& i < len; s++, i++) {
 4 uc = *s;
 5- /* NOTE: do not encode '/' for paths */
 6- if (uc <
'/' || uc >= 127 || (uc >= ':' && uc <=
'@') ||
 7+ /* NOTE: do not
encode '/' for paths or ",-." */
 8+ if (uc <
',' || uc >= 127 || (uc >= ':' && uc <=
'@') ||
 9 uc == '[' || uc ==
']') {
10
putc('%', fp);
11 putc(tab[(uc
>> 4) & 0x0f], fp);
M · stagit.c +2, -2
 1@@ -369,8 +369,8 @@ percentencode(FILE *fp, const char *s, size_t
len)
 2
 3 for (i = 0; *s
&& i < len; s++, i++) {
 4 uc = *s;
 5- /* NOTE: do not encode '/' for paths */
 6- if (uc <
'/' || uc >= 127 || (uc >= ':' && uc <=
'@') ||
 7+ /* NOTE: do not
encode '/' for paths or ",-." */
 8+ if (uc <
',' || uc >= 127 || (uc >= ':' && uc <=
'@') ||
 9 uc == '[' || uc ==
']') {
10
putc('%', fp);
11 putc(tab[(uc
>> 4) & 0x0f], fp);