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

Wrong arguments passed to the evalHandler #104

Open
endlessoblivion opened this issue Jul 30, 2021 · 0 comments
Open

Wrong arguments passed to the evalHandler #104

endlessoblivion opened this issue Jul 30, 2021 · 0 comments

Comments

@endlessoblivion
Copy link

endlessoblivion commented Jul 30, 2021

Passing the context to evalHandler (contrary to its signature) makes the request parameter unreachable in the evaluated code.

module.exports = function evalHandler(value, request) {

.map((value) => evalHandler(value, context, request))

.map((value) => evalHandler(value, context, request))

So the following doesn't work, since request has here the value of context instead:

#eval request.body;
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