fiznool / express-mongo-sanitize

Sanitize your express payload to prevent MongoDB operator injection.
MIT License
217 stars 14 forks source link

Fix compatibility with Express 5.x.x read-only query object #199

Open ammyroy119 opened 1 month ago

ammyroy119 commented 1 month ago

Description:

This pull request addresses the compatibility issue between this module and Express 5.x.x, specifically regarding the read-only nature of req.query in the newer Express version.

fiznool commented 1 month ago

Thanks for your contribution!

Ideally we'd have some tests that verify the behaviour. Can you add some?