开发者

Symfony/Doctrine: does model_object->save() filter value? (Prevent SQL injection)

开发者 https://www.devze.com 2023-02-11 23:11 出处:网络
I understand that Doctrine helps against SQL injection attacks. Does the model_object->save() com开发者_Go百科mand automatically escape unwanted characters, or do I have to write a custom input fil

I understand that Doctrine helps against SQL injection attacks. Does the model_object->save() com开发者_Go百科mand automatically escape unwanted characters, or do I have to write a custom input filter? Thanks.


the exact answer to your question can be found in Doctrine manual implicit-validation.

More info can also be found there: Validator and Data Validation.

Regards.

0

精彩评论

暂无评论...
验证码 换一张
取 消