mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Restore a check I shouldn't have removed.
We now pass all our tests again.
This commit is contained in:
parent
4b90b875c6
commit
ccea5116b5
@ -591,7 +591,7 @@ static char *make_safe_uri(char *uri)
|
||||
}
|
||||
free(chunks);
|
||||
|
||||
if (ends_in_slash) uri[pos++] = '/';
|
||||
if ((num_chunks == 0) || ends_in_slash) uri[pos++] = '/';
|
||||
assert(pos <= urilen);
|
||||
uri[pos] = '\0';
|
||||
return uri;
|
||||
|
Loading…
Reference in New Issue
Block a user