The symbols I should be aware of for SQL injection

后端 未结 2 784
梦如初夏
梦如初夏 2021-01-26 14:03

I know that you cure all of the stuff with mysql_real_escape_string() (and with htmlspecialchars()), but I want to know the symbols that cause all this

2条回答
  •  不思量自难忘°
    2021-01-26 14:57

    From the PHP Manual:

    mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a.

提交回复
热议问题