Skip to content

Commit

Permalink
file names with spaces were url encoded. wrongly.
Browse files Browse the repository at this point in the history
I see the python does not do this, and I noticed it broke
mirroring when files on the source tree had spaces the C would
post with %20, which confused the heck out of the python.
  • Loading branch information
petersilva committed Jan 10, 2025
1 parent aa4aa8f commit fbe6019
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sr_post.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ int sr_file2message_start(struct sr_context *sr_c, const char *pathspec,
d++;
}

// this quoting is for relPath is ill-advised.
while (*d) {
/*
if (*d == ' ') {
*c++ = '%';
*c++ = '2';
Expand All @@ -736,7 +738,8 @@ int sr_file2message_start(struct sr_context *sr_c, const char *pathspec,
*c++ = '3';
} else
*c++ = *d;
}
} */
*c++ = *d;
d++;
}
*c = '\0';
Expand Down

0 comments on commit fbe6019

Please sign in to comment.