Project

General

Profile

Revision bf6fb0ee

Added by Assos Assos almost 6 years ago

Weekly update of contrib modules

View differences:

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
  }

Also available in: Unified diff