protect icon indicating copy to clipboard operation
protect copied to clipboard

How to stop requests that have sql injection in the body

Open sundriver opened this issue 7 years ago • 0 comments

Hi There, Thanks for the library.

This is more a question than a issue. How can I stop requests with sql injection in the body of the request.

app.use( protect.express.sqlInjection( { body: true, loggerFunction: console.error } ) )

Above code logs the request, how can I get hold of req,res and next function and stop the next function being called.

Thanks, Ali

sundriver avatar Mar 08 '18 07:03 sundriver