fix: url-escape paths for scp (#134)
This commit is contained in:
parent
789b486fb5
commit
a5ff72a8da
2 changed files with 36 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ local function url_to_scp(url)
|
|||
table.insert(pieces, string.format(":%d", url.port))
|
||||
end
|
||||
table.insert(pieces, "/")
|
||||
table.insert(pieces, url.path)
|
||||
local escaped_path = util.url_escape(url.path)
|
||||
table.insert(pieces, escaped_path)
|
||||
return table.concat(pieces, "")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue