php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #343 magic quotes too hyperactive
Submitted: 1998-05-03 23:46 UTC Modified: 1998-05-04 14:21 UTC
From: whit at transpect dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Release Candidate 4 OS: Redhat 5.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: whit at transpect dot com
New email:
PHP Version: OS:

 

 [1998-05-03 23:46 UTC] whit at transpect dot com
The magic quotes feature now adds them where it didn't 
before, for instance when reading lines in from a flatfile 
and parsing each as an array, the array members end up
'magic quoted.' This wasn't a behavior of php2 with magic 
quotes enabled. Kind of a nuisance to have to stripslashes() 
not only on the way into the flat file from a form, but on 
the way back out to display it.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-04 14:21 UTC] jim
There are now two different configuration settings
to control the magic quotes behavior --

magic_quotes_gpc controls whether data received via
GET. POST. and Cookie variables get escaped (which
you may want if you usually shove this data into an
SQL database).

magic_quotes_runtime controls whether data received
via other mechanisms (such as the file() function)
gets escaped.

It sounds like you want to turn magic_quotes_runtime
off.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 13:01:28 2024 UTC