Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-03-09
7
Medium Priority
?
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 1500 total points
ID: 35080484
0
 

Author Closing Comment

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

618 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