Skip to content

Wrong arguments passed to the evalHandler #104

@endlessoblivion

Description

@endlessoblivion

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions