mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Allow empty path in url.parse.
I got a redirect of "?p=indisponible" and url.parse returned
{query="p=indisponible"}. Now it returns
{path="", query="p=indisponible"}.
This commit is contained in:
parent
4cdb5301dd
commit
a210d38769
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ function parse(url, default)
|
|||
return ""
|
||||
end)
|
||||
-- path is whatever was left
|
||||
if url ~= "" then parsed.path = url end
|
||||
parsed.path = url
|
||||
local authority = parsed.authority
|
||||
if not authority then return parsed end
|
||||
authority = string.gsub(authority,"^([^@]*)@",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue