url.lua:absolute_path(): ensure a separator between base_path and relative_path
This commit is contained in:
parent
7ccea58776
commit
5b862e6a3c
2 changed files with 2 additions and 1 deletions
|
@ -690,7 +690,7 @@ check_absolute_url("http://example.com/", "...badhost.com/", "http://example.com
|
|||
check_absolute_url("http://example.com/a/b/c/d/", "../q", "http://example.com/a/b/c/q")
|
||||
check_absolute_url("http://example.com/a/b/c/d/", "../../q", "http://example.com/a/b/q")
|
||||
check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q")
|
||||
check_absolute_url("http://example.com/a/b/c/d/", "../../../../q", "http://example.com/q")
|
||||
check_absolute_url("http://example.com", ".badhost.com", "http://example.com/.badhost.com")
|
||||
|
||||
print("testing path parsing and composition")
|
||||
check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue