original_string: public function cleanMagicQuotes()
      {
          if (!function_exists('stripslashes_array')) {
              function stripslashes_array(&$array, $iterations = 0)
              {
                  if ($iterations < 3) {
                      foreach ($array as $key => $value) {
                          if (is_array($value)) {
                              stripslashes_array($array[$key], $iterations + 1);
                          } else {
                              $array[$key] = stripslashes($array[$key]);
                          }
                      }
                  }
              }
          }
  
          if (get_magic_quotes_gpc()) {
              stripslashes_array($_GET);
              stripslashes_array($_POST);
              stripslashes_array($_COOKIE);
          }
      }
code: public function cleanMagicQuotes()
      {
          if (!function_exists('stripslashes_array')) {
              function stripslashes_array(&$array, $iterations = 0)
              {
                  if ($iterations < 3) {
                      foreach ($array as $key => $value) {
                          if (is_array($value)) {
                              stripslashes_array($array[$key], $iterations + 1);
                          } else {
                              $array[$key] = stripslashes($array[$key]);
                          }
                      }
                  }
              }
          }
  
          if (get_magic_quotes_gpc()) {
              stripslashes_array($_GET);
              stripslashes_array($_POST);
              stripslashes_array($_COOKIE);
          }
      }
code_tokens: public function cleanMagicQuotes ( ) { if ( ! function_exists ( 'stripslashes_array' ) ) { function stripslashes_array ( & $ array , $ iterations = 0 ) { if ( $ iterations < 3 ) { foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { stripslashes_array ( $ array [ $ key ] , $ iterations + 1 ) ; } else { $ array [ $ key ] = stripslashes ( $ array [ $ key ] ) ; } } } } } if ( get_magic_quotes_gpc ( ) ) { stripslashes_array ( $ _GET ) ; stripslashes_array ( $ _POST ) ; stripslashes_array ( $ _COOKIE ) ; } }
docstring: Magic Quotes were a design error. Let's strip them if they are enabled.
docstring_tokens: Magic Quotes were a design error . Let s strip them if they are enabled .