Does pg_prepare() prepared statement (not PDO) prevent SQL-Injection?

后端 未结 4 1162
误落风尘
误落风尘 2021-01-20 11:50

PDO ist not supported in target system I\'m working on and though I seek a solution for preventing SQL-Injection using PHP 5.1.x on a

4条回答
  •  离开以前
    2021-01-20 12:21

    A prepared statement is safe from SQL injection because nobody can change the queryplan after it's prepared. But, if your statement is already compromised, you still suffer from SQL injection:

    
    

提交回复
热议问题