diff options
author | E. Westbrook <github@westbrook.io> | 2018-08-21 11:27:42 -0600 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2018-08-21 11:27:42 -0600 |
commit | 38d936ec0ea05da9f85a5c582e5073e0d1b82209 (patch) | |
tree | d6c3bdd676903f76b3c1977a98fe6087ea0f4f85 /test | |
parent | 5b862e6a3c79b8e336a0ac2f0d23ca69993b326d (diff) | |
download | luasocket-38d936ec0ea05da9f85a5c582e5073e0d1b82209.tar.gz luasocket-38d936ec0ea05da9f85a5c582e5073e0d1b82209.tar.bz2 luasocket-38d936ec0ea05da9f85a5c582e5073e0d1b82209.zip |
url.lua:remove_dot_components(): empty path component double-dot corner case
Diffstat (limited to 'test')
-rw-r--r-- | test/urltest.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/urltest.lua b/test/urltest.lua index b6ee299..13deb10 100644 --- a/test/urltest.lua +++ b/test/urltest.lua | |||
@@ -691,6 +691,7 @@ check_absolute_url("http://example.com/a/b/c/d/", "../q", "http://example.com/a/ | |||
691 | check_absolute_url("http://example.com/a/b/c/d/", "../../q", "http://example.com/a/b/q") | 691 | check_absolute_url("http://example.com/a/b/c/d/", "../../q", "http://example.com/a/b/q") |
692 | check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q") | 692 | check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q") |
693 | check_absolute_url("http://example.com", ".badhost.com", "http://example.com/.badhost.com") | 693 | check_absolute_url("http://example.com", ".badhost.com", "http://example.com/.badhost.com") |
694 | check_absolute_url("http://example.com/a/b/c/d/", "..//../../../q", "http://example.com/a/q") | ||
694 | 695 | ||
695 | print("testing path parsing and composition") | 696 | print("testing path parsing and composition") |
696 | check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) | 697 | check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) |