php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11742 Escaping quotes gets out of hand
Submitted: 2001-06-27 11:12 UTC Modified: 2001-06-27 11:42 UTC
From: cheapsalsa at yahoo dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.0.6 OS: Red Hat Linux 7.0 Standard
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cheapsalsa at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-06-27 11:12 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 11:42 UTC] sniper@php.net
submitted twice.

 [2004-06-24 22:06 UTC] asif at bandxusa dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC