summaryrefslogtreecommitdiff
path: root/src/c/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/request.c')
-rw-r--r--src/c/request.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/c/request.c b/src/c/request.c
index 7e53f716..2ca65691 100644
--- a/src/c/request.c
+++ b/src/c/request.c
@@ -128,6 +128,14 @@ request_result uw_request(uw_request_context rc, uw_context ctx,
size_t boundary_len = 0;
char *inputs;
const char *prefix = uw_get_url_prefix(ctx);
+ char *s;
+
+ for (s = path; *s; ++s) {
+ if (s[0] == '%' && s[1] == '2' && s[2] == '7') {
+ s[0] = '\'';
+ memmove(s+1, s+3, strlen(s+3)+1);
+ }
+ }
uw_set_currentUrl(ctx, path);