set $foo "";
set_by_lua_block $foo {
-- potentially some interesting logic here instead of just the simple return below
return "bar"
}
Expected behavior
Lua injection should be detected for this set_by_lua_block
IDE:
OS: macOS 14.5
Product: WebStorm
Version 2024.1.5
Plugin (please complete the following information. See Main Menu -> File -> Settings -> Plugins):
Version 2024.3
Additional context
I lack know-how about nginx and Lua. I use set_by_lua_block $foo { … } syntax, because it is already present in files I have to work on. I might just not know about some alternative idiomatic approach of setting nginx vars out of Lua blocks.
Describe the bug
set_by_lua_block $foo
syntax is not supportedTo Reproduce
Use a snippet like this:
Expected behavior
Lua injection should be detected for this
set_by_lua_block
IDE:
Plugin (please complete the following information. See Main Menu -> File -> Settings -> Plugins):
Additional context
I lack know-how about nginx and Lua. I use
set_by_lua_block $foo { … }
syntax, because it is already present in files I have to work on. I might just not know about some alternative idiomatic approach of setting nginx vars out of Lua blocks.