Solved

Joomla magic quotes

Posted on 2013-01-21
4
417 Views
Last Modified: 2013-01-21
My server has magic quotes turned on, and in my articles all quotes are being preceed with a \ every time i save so  now I have  multiple slashes in front of any quotes.

How should a php.ini file look and where should it be placed to prevent magic quotes from being applied when article and custom html module content is being edited?

I've tried suggestions found in google but don't seem to work.
0
Comment
Question by:tf2012
  • 3
4 Comments
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 38801102
Who controls the server? This should be turned off immediately by the owner of the server!

Here is the man page link:
http://php.net/manual/en/security.magicquotes.disabling.php

And here is a fuller explanation of what happened and why, historically speaking.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_6630-Magic-Quotes-a-bad-idea-from-day-one.html
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 38801104
Also, this note seems particularly apt:
http://php.net/manual/en/security.magicquotes.disabling.php#82777

HTH, ~Ray
0
 
LVL 1

Author Closing Comment

by:tf2012
ID: 38801277
I just sent an email to my client asking for the server admin to turn it off.

thanks!
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 38801350
Thanks for the points -- I think that's the best way to go.  Best of luck with it, ~Ray
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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 look for a specific file type in a local or remote server directory using PHP.

740 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