Index: pathauto.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/pathauto/pathauto.inc,v
retrieving revision 1.64
diff -u -r1.64 pathauto.inc
--- pathauto.inc	18 Feb 2010 02:17:41 -0000	1.64
+++ pathauto.inc	27 Feb 2010 00:03:17 -0000
@@ -180,12 +180,17 @@
   // Get rid of words that are on the ignore list
   $ignore_re = '\b' . preg_replace('/,/', '\b|\b', variable_get('pathauto_ignore_words', $ignore_words)) . '\b';
 
-  if (function_exists('mb_eregi_replace')) {
-    $output = mb_eregi_replace($ignore_re, '', $output);
+	// If element contains only the ignore words, left the alias untounched to avoid blank alias
+  if (function_exists('mb_eregi_replace')) {	
+		$temp_output = trim(mb_eregi_replace($ignore_re, '', $output));
   }
   else {
-    $output = preg_replace("/$ignore_re/i", '', $output);
+		$temp_output = trim(preg_replace("/$ignore_re/i", '', $output));
   }
+	$words = preg_replace('/ |' . $separator . '/', '', $temp_output);
+	if (strlen($words)) {
+		$output = $temp_output;	
+	}	
 
   // Always replace whitespace with the separator.
   $output = preg_replace('/\s+/', $separator, $output);
@@ -211,7 +216,7 @@
   }
 
   // Enforce the maximum component length
-  $maxlength = min(variable_get('pathauto_max_component_length', 100), 128);
+  $maxlength = min(variable_get('pathauto_max_component_length', 100), _pathauto_get_schema_alias_maxlength());
   $output = _pathauto_truncate_chars($output, $maxlength, $separator);
 
   return $output;

