Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function fix_input_quotes() {
- if (get_magic_quotes_gpc()) {
- array_stripslashes($_GET);
- array_stripslashes($_POST);
- array_stripslashes($_COOKIE);
- }
- }
- function array_stripslashes(&$array) {
- if (!is_array($array)) {
- return;
- }
- foreach ($array as $k => $v) {
- if (is_array($array[$k])) {
- array_stripslashes($array[$k]);
- } else {
- $array[$k] = stripslashes($array[$k]);
- }
- }
- return $array;
- }
- ?>
Add Comment
Please, Sign In to add comment