Projet

Général

Profil

Révision bf6fb0ee

Ajouté par Assos Assos il y a presque 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/uuid/uuid_services/uuid_services.module
147 147
      $entity = (object) $entity;
148 148
    }
149 149
    $entity->uuid_services = TRUE;
150
    // Sanitize file user input.
151
    if ($entity_type == 'file') {
152
      $entity->filename = _services_file_check_name_extension($entity->filename);
153
      $entity->uri = _services_file_check_destination_uri($entity->uri);
154
      if (!empty($entity->filepath)) {
155
        $entity->filepath = _services_file_check_destination($entity->filepath);
156
      }
157
    }
150 158
    entity_uuid_save($entity_type, $entity);
151 159
    return $entity;
152 160
  }

Formats disponibles : Unified diff