Re: SQL safe input?

Поиск
Список
Период
Сортировка
От Charley L. Tiggs
Тема Re: SQL safe input?
Дата
Msg-id 08213942-12FE-4445-890E-4E78B2697359@xpressdocs.com
обсуждение исходный текст
Ответ на SQL safe input?  (cbraden <cbraden@douglasknight.com>)
Список pgsql-novice
On Aug 26, 2005, at 2:53 PM, cbraden wrote:

> Folks,
>
> I would like to know how to prevent SQL attacks on a postgreSQL
> server.
>
> I know in mySQL you can put any input going to the DB through a
> filter which encodes anything which would be malicious into mySQL
> safe data.  I need something similar in postgreSQL.  Specifically
> as a php implementation if it exists.

You can use pg_escape_string ()

http://www.php.net/pg_escape_string

Charley



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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: SQL "OR" Problem
Следующее
От:
Дата:
Сообщение: Prepare() Value