Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Magic quotes? Should I still be cautious? Date: Wed, 04 Jan 2012 15:55:51 +0100 Organization: A noiseless patient Spider Lines: 18 Message-ID: <4F046877.3080409@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="dd4uQGf4fHOQcq7/hg1u1Q"; logging-data="19144"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/x+AcqoaL5v6oCQQeXbg96SOp+IhPdr74=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:qw6TvaA8I5MpaauUL2Bf4nZdqcc= Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4219 Michael Joel, 2011-12-29 21:55: > I do not have control of my server (shared server). > > echo get_magic_quotes_gpc(); returns True. > Should I still be cautious and use addslashes/stripslashes in case the > hosting company ever decides to change the settings? I assume magic quotes to be disabled and in the past i used the following code fragment to be safe: -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de