Solved

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

Posted on 2011-03-09
7
294 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
Comment Utility
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
Comment Utility
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
Comment Utility
But how is the content getting to the server?  Form posts?  FTP?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
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
Comment Utility
Post to a db with a mysql escape string...
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:d_rijken
Comment Utility
It was the php magic quotes setting.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
htacces issue 2 37
Encode a password 2 36
MySQL DB vs MARIA DB compatibility for PHP and Wordpress 2 58
windows 10 bash shell 4 32
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now