Q695 Posted February 14, 2009 Share Posted February 14, 2009 I'm looking for a way to automate smart quotes on a php page similar to that of a mass $_POST/$_GET data dump. Does anyone have one that can be turned off, and on depending on the page? Example: on this forum if you go to "?action=post;board='1.0" it kills the site, but '?action=post;board="1.0' wouldn't (hypothetically speaking, but it does anyways). It would save s lot of time when writing code, and quickly automate page security. Quote Link to comment https://forums.phpfreaks.com/topic/145182-automation-of-smart-quotes/ Share on other sites More sharing options...
Daniel0 Posted February 14, 2009 Share Posted February 14, 2009 Sounds like you're looking for magic quotes. Don't use it. Quote Link to comment https://forums.phpfreaks.com/topic/145182-automation-of-smart-quotes/#findComment-762000 Share on other sites More sharing options...
Q695 Posted February 14, 2009 Author Share Posted February 14, 2009 Actually I'm talking about automating mysql_real_escape_string() Quote Link to comment https://forums.phpfreaks.com/topic/145182-automation-of-smart-quotes/#findComment-762003 Share on other sites More sharing options...
Daniel0 Posted February 14, 2009 Share Posted February 14, 2009 Yeah, as I said, it sounds like you're talking about magic quotes. Quote Link to comment https://forums.phpfreaks.com/topic/145182-automation-of-smart-quotes/#findComment-762007 Share on other sites More sharing options...
printf Posted February 14, 2009 Share Posted February 14, 2009 Form Data or Variable Data processing is a initialization staging process. Things like this should be done at the initialization of the application. Most people just use the super globals the way they are given to you, which is bad by design. If your script or application expects variables (A, B and C) then after initialization the super global should only contain variables (A, B and C) because the initialization process should CAST by TYPE and CLEAN the variables by APPLICATION USAGE, REMOVING any variable not expected. Quote Link to comment https://forums.phpfreaks.com/topic/145182-automation-of-smart-quotes/#findComment-762009 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.