Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to index upvalue 'shell' (a userdata value) #16

Open
dockss-911 opened this issue Mar 12, 2021 · 1 comment
Open

attempt to index upvalue 'shell' (a userdata value) #16

dockss-911 opened this issue Mar 12, 2021 · 1 comment

Comments

@dockss-911
Copy link

dockss-911 commented Mar 12, 2021

local shell = require "resty.shell"
ngx.req.read_body()
local args = ngx.req.get_post_args()

shell.run("/bin/echo", args.name)

@dockss-911
Copy link
Author

nginx version is 1.19.4 ,the same code can run on nginx 1.17.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant