Solved

Server makes from all ' chars /' what can i do to prevent/change that

Posted on 2011-03-09
7
296 Views
Last Modified: 2012-05-11
Our webserver changes all ' characters to '/ . How can i change this? Is this a php configuration setting?

0
Comment
Question by:d_rijken
  • 4
  • 3
7 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35080384
Hi d_rijken,

That's the server rewriting things to prevent an injection attack of some sort.  Where exactly is it happening?
0
 

Author Comment

by:d_rijken
ID: 35080429
Hi Jason,

It's happening with every content. Even when we put it a wysiwyg editor. Also file uploads etc etc. But is it a server config setting?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35080460
But how is the content getting to the server?  Form posts?  FTP?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35080461
If it's happening with form posts, then it most likely is the magic_quotes_gpc directive in the php.ini file.
0
 

Author Comment

by:d_rijken
ID: 35080469
Post to a db with a mysql escape string...
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 35080484
0
 

Author Closing Comment

by:d_rijken
ID: 35106276
It was the php magic quotes setting.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.htaccess 5 38
php convert date format 3 22
php mysql check email already in database. (second check) 7 30
How do I fix this UPDATE error? 7 24
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question