If I turn off magic_quotes in an environment where I did not wrote the code, how can I check if any problems may occur? For what do I have to check? Which functions may not work any more?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When magic_quotes turned on, Magic Quotes automatically performs an
addslashes()on all form data submitted. It means that a[\]is placed before every [‘], [“], [], or null in the data, soThat's nicewill be converted toThat\'s niceautomatically. This all happens before your coding even sees that data, so if you’re just passing a string to the next page (not to database) it will print with slashes even though you may not want them at all.