Re: SQL injection, php and queueing multiple statement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQL injection, php and queueing multiple statement
Дата
Msg-id 20609.1208031514@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SQL injection, php and queueing multiple statement  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Use prepared statements.

> Yeah... but how can I effectively enforce the policy that ALL input
> will be passed through prepared statements?

Modify the PHP code (at whatever corresponds to the DBD layer)
to always use PQexecParams, never PQexec, even when you don't
have any parameters.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Postgres on shared network drive
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: SQL injection, php and queueing multiple statement