url.lua:remove_dot_components(): limit beginning-of-string double-dot corner case to prevent triple-dot activation and authority collision
This commit is contained in:
parent
c905b5d44f
commit
c570a32c21
2 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,7 @@ local function remove_dot_components(path)
|
|||
path = path:gsub('[^/]+/%.%./*$', '')
|
||||
path = path:gsub('/%.%.$', '/')
|
||||
path = path:gsub('/%.$', '/')
|
||||
path = path:gsub('^/%.%.', '')
|
||||
path = path:gsub('^/%.%./', '/')
|
||||
return path
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue