mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 22:57:38 +03:00
mod_http_files: Preserve a trailing / in paths (fixes #639)
This commit is contained in:
parent
e08144940d
commit
ae72fdd667
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ function sanitize_path(path)
|
||||||
out[c] = component;
|
out[c] = component;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if path:sub(-1,-1) == "/" then
|
||||||
|
out[c+1] = "";
|
||||||
|
end
|
||||||
return "/"..table.concat(out, "/");
|
return "/"..table.concat(out, "/");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue