From fbe601918be4bc7ef0bc66d4c588a63ad5d44a6e Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Thu, 9 Jan 2025 21:51:12 -0500 Subject: [PATCH] file names with spaces were url encoded. wrongly. 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. --- sr_post.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sr_post.c b/sr_post.c index dcdd3a8..c1dd2b6 100644 --- a/sr_post.c +++ b/sr_post.c @@ -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'; @@ -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';