Re: Magic quotes and addslashes()

From: Date: Tue, 08 Apr 2003 23:38:31 +0000
Subject: Re: Magic quotes and addslashes()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142975@lists.php.net to get a copy of this message
> From: "Emil Stenqvist" <emil@evolve.se> > > I'm a developer of a PHP product for commercial use (it's open source > though), and I'm wondering which is the best; require the user to enable > magic_quotes in PHP or using addslashes() on all data inserted into the > database? For the developers, it's one thing less to think of but maybe > it could be bad for the users. Thank you in advance. Just cover both possibilities: $data = get_magic_quotes_gpc() ? $data : addslashes($data); -- Lowell Allen

« previous php.general (#142975) next »