### Eclipse Workspace Patch 1.0 #P pathauto Index: pathauto.inc =================================================================== RCS file: /cvs/drupal/contributions/modules/pathauto/pathauto.inc,v retrieving revision 1.45 diff -u -r1.45 pathauto.inc --- pathauto.inc 18 Jun 2008 20:02:40 -0000 1.45 +++ pathauto.inc 6 Nov 2009 22:03:05 -0000 @@ -449,7 +449,7 @@ function pathauto_clean_token_values($full) { foreach ($full->values as $key => $value) { // If it's a "path" or "url friendly" token don't remove the "/" character - if (drupal_substr($full->tokens[$key], -4, 4) === 'path' || drupal_substr($full->tokens[$key], -8, 8) === 'path-raw' || drupal_substr($full->tokens[$key], -5, 5) === 'alias') { + if (strpos($full->tokens[$key], 'path') !== FALSE || strpos($full->tokens[$key], 'alias') !== FALSE) { $full->values[$key] = pathauto_cleanstring($value, FALSE); } else {