search

Home  >  Q&A  >  body text

thinkphp3.2 data processing

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! !

世界只因有你世界只因有你2769 days ago623

reply all(2)I'll reply

  • 怪我咯

    怪我咯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

    reply
    0
  • 天蓬老师

    天蓬老师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.

    reply
    0
  • Cancelreply