Changeset 70 in Main for trunk/Server/http.c
- Timestamp:
- Sep 19, 2024, 6:23:45 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/http.c
r69 r70 83 83 #endif 84 84 int len = tw_read(ssl, sock, buffer, 512); 85 if(len <= 0) {85 if(len <= 0) { 86 86 bad = true; 87 87 break; … … 285 285 if(req->path[i + 1] == 0) continue; 286 286 cbuf[0] = cm_hex(req->path + i + 1, 2); 287 char* tmp = result; 288 result = cm_strcat(tmp, cbuf); 289 free(tmp); 287 if(cbuf[0] != '\\') { 288 char* tmp = result; 289 result = cm_strcat(tmp, cbuf); 290 free(tmp); 291 } 290 292 i += 2; 291 } else {293 } else if(req->path[i] != '\\') { 292 294 cbuf[0] = req->path[i]; 293 295 char* tmp = result; … … 325 327 } 326 328 } else if(strcmp(pth, ".") == 0) { 327 } else if(oldc != '\\'){329 } else { 328 330 char* tmp = p; 329 331 p = cm_strcat3(tmp, pth, cbuf);
Note:
See TracChangeset
for help on using the changeset viewer.