In the development mode of thinkphp3.2, is there any way to verify sensitive words in the data entered by the user? Please give me some advice! !
怪我咯2017-05-27 17:45:08
Composer has a third-party package that responds to Minggan word filtering. Import the lib, and then import. Of course, you can consider letting thinkphp adapt to the composer specification, and it can be loaded automatically
天蓬老师2017-05-27 17:45:08
There is a think_filter method in function.php of tp. The directory can filter the sql keywords entered by the user. Of course, you can also add your own filtering rules in it.