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

Raphael Apard’s picture

Thanks, it's now in dev version.

Raphael Apard’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.