Index: pathauto.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.inc,v
retrieving revision 1.45.2.28
diff -u -p -r1.45.2.28 pathauto.inc
--- pathauto.inc	12 Aug 2010 15:11:08 -0000	1.45.2.28
+++ pathauto.inc	14 Sep 2010 14:06:54 -0000
@@ -567,9 +567,10 @@ function pathauto_clean_token_values($fu
     if (!preg_match('/(path|alias|url|url-brief)(-raw)?$/', $token)) {
       $replacements[$token] = pathauto_cleanstring($value);
     }
-    elseif (preg_match('/(bookpath|menupath)(-raw)?$/', $token)) {
+    elseif (preg_match('/(bookpath|menupath|hierarchy)(-raw)?$/', $token)) {
       // A few tokens violate the path/path-raw naming convention and should
-      // still have their segments cleaned using pathauto_cleanstring().
+      // still have their segments cleaned using pathauto_cleanstring() along
+      // with the hierarchy/hierarchy-raw tokens.
       $segments = explode('/', $value);
       $segments = array_map('pathauto_cleanstring', $segments);
       $replacements[$token] = implode('/', $segments);
