#11742 [Com]: Escaping quotes gets out of hand

From: Date: Thu, 24 Jun 2004 20:06:39 +0000
Subject: #11742 [Com]: Escaping quotes gets out of hand
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61329@lists.php.net to get a copy of this message
ID: 11742 Comment by: asif at bandxusa dot com Reported By: cheapsalsa at yahoo dot com Status: Bogus Bug Type: Output Control Operating System: Red Hat Linux 7.0 Standard PHP Version: 4.0.6 New Comment: Try using the stripslashes function before placing the value back into the form...It should take care of your issue. You're probably using mysql_escape_string...the stripslashes shoudl take care of it. Previous Comments: ------------------------------------------------------------------------ [2001-06-27 11:42:38] sniper@php.net submitted twice. ------------------------------------------------------------------------ [2001-06-27 11:12:20] cheapsalsa at yahoo dot com I have created a news program for my website using PHP 4.0.6. When I need to edit the news, the program rewrites the whole news file, whether a news story got edited or not. Sometimes I have to include quotes like ' or ". The first time I post the news they look like \' \" (with one backslash). After I edited the news a couple of times it can get out of hand, and the quotes look like \\\\\\\\\\\\' or \\\\\\\\\\\\" . This looks really bad. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11742&edit=1

« previous php.bugs (#61329) next »