php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12409 Form variables are unexpectedly being escaped
Submitted: 2001-07-26 17:28 UTC Modified: 2001-07-26 18:31 UTC
From: ryan dot smith at openwave dot com Assigned:
Status: Closed Package: Variables related
PHP Version: 4.0.6 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 43 = ?
Subscribe to this entry?

 
 [2001-07-26 17:28 UTC] ryan dot smith at openwave dot com
When I sumbit a form which contains a textarea containing the quote character, the form variable generated in
the submitted script contains an escaped quote.  This didn't happen in PHP3, and I'm not
sure when it appeard in PHP4, as I've only used 4.0.6.

An example can be seen on www.php.net:
Enter a string containing quotes in the text search box.  The resulting page will contain
multiple backslashes around the quotes.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-26 18:26 UTC] ryan dot smith at openwave dot com
Ah - it looks like magic_quotes_gpc is now defaults to on.  Should it?
 [2001-07-26 18:31 UTC] rasmus@php.net
It always did
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 20:01:25 2019 UTC