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.
Partly a bug report (as far as the D6 suggestion is concerned on the project page), partly a suggestion. The regexp can be formulated in a more straightforward way:
$path = preg_replace('|^user(?![^/])|', 'whatever', $path);
Comments
Comment #1
Raphael Apard CreditAttribution: Raphael Apard commentedThanks, it's now in dev version.
Comment #2
Raphael Apard CreditAttribution: Raphael Apard commented