nestjsx / crud

NestJs CRUD for RESTful APIs
https://github.com/nestjsx/crud/wiki
MIT License
4.04k stars 533 forks source link

fix(crud-typeorm): fix sql injection check looping on the first regex… #694

Open c3dr1cF0rt1n opened 3 years ago

c3dr1cF0rt1n commented 3 years ago

There seems to be an error on sql injection check, looping exclusively on the first element of the regex array. Also changed the check function from private to protected to allow reusability on deriving classes.

rewiko commented 2 years ago

Merged on https://github.com/rewiko/crud/issues/5