mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
Remove repeating backslashes only on Windows
This commit is contained in:
1 parent
76dd31055e
commit
84a76fba69
1 file changed
+2
-2
+2
-2
@@ -1696,9 +1696,9 @@ static void remove_double_dots_and_double_slashes(char *s) {
|
||||
|
||||
while (*s != '\0') {
|
||||
*p++ = *s++;
|
||||
if (s[-1] == '/' || s[-1] == '\\') {
|
||||
if (s[-1] == '/' || s[-1] == DIRSEP) {
|
||||
// Skip all following slashes and backslashes
|
||||
while (*s == '/' || *s == '\\') {
|
||||
while (*s == '/' || *s == DIRSEP) {
|
||||
s++;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user