Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/includes/file.inc
273 273
 *   The normalized URI.
274 274
 */
275 275
function file_stream_wrapper_uri_normalize($uri) {
276
  $scheme = file_uri_scheme($uri);
276
  // Inline file_uri_scheme() function call for performance reasons.
277
  $position = strpos($uri, '://');
278
  $scheme = $position ? substr($uri, 0, $position) : FALSE;
277 279

  
278 280
  if ($scheme && file_stream_wrapper_valid_scheme($scheme)) {
279 281
    $target = file_uri_target($uri);
......
2022 2024
 *
2023 2025
 * @see file_transfer()
2024 2026
 * @see file_download_access()
2025
 * @see hook_file_downlaod()
2027
 * @see hook_file_download()
2026 2028
 */
2027 2029
function file_download_headers($uri) {
2028 2030
  // Let other modules provide headers and control access to the file.

Also available in: Unified diff