From: Frank Joerdens <frank@joerdens.de>
To: Mitch Vincent <mvincent@cablespeed.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Re(2): Test (fwd)
Date: Fri, 15 Jun 2001 10:30:11 +0200
Message-ID: <20010615103011.A25185@rakete.joerdens.de> (raw)
In-Reply-To: <004601c0f525$8b7d3e90$0200000a@Mitch>
References: <Pine.LNX.4.33.0106131937010.13453-100000@webdevel.urban.csuohio.edu>
<009301c0f4da$f9a71b20$330a0a0a@rutgersinsurance.com>
<fc.00249f0e001b95893b9aca005379f626.1b961a@irpsmail.ucsd.edu>
<00f301c0f4f7$70ef3c00$330a0a0a@rutgersinsurance.com>
<004601c0f525$8b7d3e90$0200000a@Mitch>
On Thu, Jun 14, 2001 at 06:57:43PM -0400, Mitch Vincent wrote:
> The apostrophe being a special character in PostgreSQL (and most other
> databases), it needs to be escaped if you wish it to go nicely into a
> query..
> addslashes() and related functions will help there.
>
> Another thing to keep in mine is htmlspecialchars() -- it's very useful
> when someone might put a double quote in your form field -- which could
> seriously mess up when you have something like <INPUT TYPE="TEXT"
> NAME="Whatever" VALUE="this is what I'm "talking" about"> , sort of thing.
Also note that the PHP runtime parameter magic_quotes_gpc is usually on
by default which does the escaping by default.
- Frank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: frank@joerdens.de, mvincent@cablespeed.com
Subject: Re: Test (fwd)
In-Reply-To: <20010615103011.A25185@rakete.joerdens.de>
References: <Pine.LNX.4.33.0106131937010.13453-100000@webdevel.urban.csuohio.edu> <009301c0f4da$f9a71b20$330a0a0a@rutgersinsurance.com> <fc.00249f0e001b95893b9aca005379f626.1b961a@irpsmail.ucsd.edu> <00f301c0f4f7$70ef3c00$330a0a0a@rutgersinsurance.com> <004601c0f525$8b7d3e90$0200000a@Mitch> <20010615103011.A25185@rakete.joerdens.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox