From: Tobias Ulmer Date: Fri, 29 Jun 2012 23:56:14 +0000 (+0200) Subject: Permit any character in URIs, not just non-whitespace ones X-Git-Tag: e2factory-2.3.12rc1~33 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=6de9ea824f1ae5085654c9e7e8affadde6ceb9b7;p=e2factory.git Permit any character in URIs, not just non-whitespace ones Signed-off-by: Tobias Ulmer --- diff --git a/generic/url.lua b/generic/url.lua index 9354d7c..90651f5 100644 --- a/generic/url.lua +++ b/generic/url.lua @@ -50,12 +50,12 @@ function parse(url) u.url = url -- parse: transport://server/path u.transport, u.server, u.path = - u.url:match("(%S+)://([^/]*)(%S*)") + u.url:match("(%S+)://([^/]*)(.*)") if not u.transport then return nil, string.format("can't parse url: %s", url) end -- remove leading slashes from the path - u.path = u.path:match("^[/]*(%S*)") + u.path = u.path:match("^[/]*(.*)") -- parse the server part if u.server:match("(%S+):(%S+)@(%S+)") then -- user:pass@host