Commit 5dcda832 authored by Felipe Pina's avatar Felipe Pina
Browse files

Aceitar @ como caracter válido para consulta de path

Aceitar @ como caracter válido para consulta sobrea a cesso do SGA a path.
Showing with 1 addition and 1 deletion
+1 -1
......@@ -149,7 +149,7 @@ function server.new(config, logger, client, driver)
end
self.logger:info("Received path query ("..query.name.." ).")
-- Catch invalid characters
local clean = query.name:match("^/[a-zA-Z0-9.%-_ \128-\255/]*$")
local clean = query.name:match("^/[a-zA-Z0-9.@%-_ \128-\255/]*$")
-- Catch attempts to escape using '..'
if query.name:match("/%.%.") then
clean = false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment