Hi
I found something in filefield_paths_replace_path_callback

 $old_info = parse_url($old);
  if (isset($old_info['path'])) {
    $old_info['host'] .= $old_info['path'];
  }

  // Determine the file path variation type/modifier.
  $old_prefixes = _filefield_paths_replace_path_get_prefixes($old_info['scheme']);

parse_url return FALSE in my case and $old_prefixes ends up containing a pattern of :// which matches a lot of cases (indeed if a have X photos, i end up replacing the pattern X times per url).
Maybe it's an edge case only related to my code but i thougth it was worth mentionning.
What should be the correct behavior ? No replacements at all ?

Thank you

Note : This issue may be related https://www.drupal.org/node/2119789

Comments

ulk200 created an issue.