mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
Merge 420d07f144 into 271cabb86a
This commit is contained in:
commit
de7acffcaa
1 changed files with 5 additions and 5 deletions
|
|
@ -199,11 +199,11 @@ function parse(url, default)
|
|||
parsed.authority = n
|
||||
return ""
|
||||
end)
|
||||
-- get params
|
||||
url = string.gsub(url, "%;(.*)", function(p)
|
||||
parsed.params = p
|
||||
return ""
|
||||
end)
|
||||
-- get params (RFC 3986 s3.3: parameters are scoped to individual path
|
||||
-- segments, not the entire remaining path). Capture the first occurrence
|
||||
-- and strip all occurrences so the path is reconstructed correctly.
|
||||
parsed.params = url:match("%;([^/]*)")
|
||||
url = url:gsub("%;[^/]*", "")
|
||||
|
||||
-- path is whatever was left
|
||||
parsed.path = url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue