Most of the time when we are doing stripslashes and addslashes it is on data that may be using the magic_quotes_gpc. Such data is put in $_GET, $_POST, $_COOKIE and may need to have slashes added or slashes stripped. The following are two functions that helps with this, by checking the magic_quotes_gpc first:
