diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/url.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/url.lua b/src/url.lua index 243ee1c..10a9d90 100644 --- a/src/url.lua +++ b/src/url.lua | |||
| @@ -89,6 +89,10 @@ local function remove_dot_components(path) | |||
| 89 | until path == was | 89 | until path == was |
| 90 | repeat | 90 | repeat |
| 91 | local was = path | 91 | local was = path |
| 92 | path = path:gsub('//%.%./([^/]+)', '/%1', 1) | ||
| 93 | until path == was | ||
| 94 | repeat | ||
| 95 | local was = path | ||
| 92 | path = path:gsub('[^/]+/%.%./([^/]+)', '%1', 1) | 96 | path = path:gsub('[^/]+/%.%./([^/]+)', '%1', 1) |
| 93 | until path == was | 97 | until path == was |
| 94 | path = path:gsub('[^/]+/%.%./*$', '') | 98 | path = path:gsub('[^/]+/%.%./*$', '') |
