mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Change mg_http_upload API
This commit is contained in:
1 parent
56412193e7
commit
99f0688377
10 files changed
+135
-56
No files matched your search
@@ -223,7 +223,7 @@ int64_t mg_to64(struct mg_str str) {
|
||||
}
|
||||
|
||||
char *mg_remove_double_dots(char *s) {
|
||||
char *p = s;
|
||||
char *saved = s, *p = s;
|
||||
while (*s != '\0') {
|
||||
*p++ = *s++;
|
||||
if (s[-1] == '/' || s[-1] == '\\') {
|
||||
@@ -240,5 +240,5 @@ char *mg_remove_double_dots(char *s) {
|
||||
}
|
||||
}
|
||||
*p = '\0';
|
||||
return s;
|
||||
return saved;
|
||||
}
|
||||
Reference in new issue
Block a user