Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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