Projet

Général

Profil

Révision 6b24a280

Ajouté par Assos Assos il y a presque 4 ans

-a

Voir les différences:

drupal7/includes/request-sanitizer.inc
99 99
  protected static function stripDangerousValues($input, array $whitelist, array &$sanitized_keys) {
100 100
    if (is_array($input)) {
101 101
      foreach ($input as $key => $value) {
102
        if ($key !== '' && $key[0] === '#' && !in_array($key, $whitelist, TRUE)) {
102
        if ($key !== '' && is_string($key) && $key[0] === '#' && !in_array($key, $whitelist, TRUE)) {
103 103
          unset($input[$key]);
104 104
          $sanitized_keys[] = $key;
105 105
        }

Formats disponibles : Unified diff