? multiple_seps.patch Index: pathauto.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v retrieving revision 1.44.4.10 diff -u -p -r1.44.4.10 pathauto.module --- pathauto.module 18 May 2007 04:14:16 -0000 1.44.4.10 +++ pathauto.module 26 Jul 2007 00:24:43 -0000 @@ -329,6 +329,9 @@ function pathauto_cleanstring($string) { $output = preg_replace("/^$seppattern+|$seppattern+$/", "", $output); } + // Replace multiple separators with a single one + $output = preg_replace("/$seppattern+/", "$separator", $output); + // Enforce the maximum component length $maxlength = min(variable_get('pathauto_max_component_length', 100), 128); $output = drupal_substr($output, 0, $maxlength);