changelog entry
This commit is contained in:
parent
d91b71ae48
commit
1d006ef163
|
@ -0,0 +1 @@
|
||||||
|
- fixed a bug when accessing file from skylink via subdomain with a filename that had escaped characters
|
|
@ -9,7 +9,7 @@ location / {
|
||||||
set_by_lua_block $path {
|
set_by_lua_block $path {
|
||||||
-- strip ngx.var.request_uri from query params - this is basically the same as ngx.var.uri but
|
-- strip ngx.var.request_uri from query params - this is basically the same as ngx.var.uri but
|
||||||
-- do not use ngx.var.uri because it will already be unescaped and we need to use escaped path
|
-- do not use ngx.var.uri because it will already be unescaped and we need to use escaped path
|
||||||
-- examples: escaped uri "/b%20r56+7" and unescaped uri: "/b r56 7"
|
-- examples: escaped uri "/b%20r56+7" and unescaped uri "/b r56 7"
|
||||||
return string.gsub(ngx.var.request_uri, "?.*", "")
|
return string.gsub(ngx.var.request_uri, "?.*", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue