Index: modules/path/path.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/path/path.admin.inc,v
retrieving revision 1.16
diff -u -p -r1.16 path.admin.inc
--- modules/path/path.admin.inc	5 Dec 2008 12:50:27 -0000	1.16
+++ modules/path/path.admin.inc	12 Jan 2009 22:22:45 -0000
@@ -113,7 +113,7 @@ function path_admin_form(&$form_state, $
     '#default_value' => $edit['dst'],
     '#maxlength' => 128,
     '#size' => 45,
-    '#description' => t('Specify an alternative path by which this data can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
+    '#description' => t('Specify a path alias by which this page can be accessed. Use a relative path. For example, type <kbd>about</kbd> to refer to an about page.'),
     '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='),
     '#required' => TRUE,
   );
Index: modules/path/path.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/path/path.module,v
retrieving revision 1.152
diff -u -p -r1.152 path.module
--- modules/path/path.module	9 Dec 2008 11:30:24 -0000	1.152
+++ modules/path/path.module	12 Jan 2009 22:22:46 -0000
@@ -80,6 +80,8 @@ function path_admin_delete($pid = 0) {
  */
 function path_set_alias($path = NULL, $alias = NULL, $pid = NULL, $language = '') {
   $path = urldecode($path);
+  // Remove possible slashes from both ends to avoid invalid aliases.
+  $alias = trim($alias, '/');
   $alias = urldecode($alias);
   // First we check if we deal with an existing alias and delete or modify it based on pid.
   if ($pid) {
@@ -203,7 +205,7 @@ function path_form_alter(&$form, $form_s
       '#maxlength' => 128,
       '#collapsible' => TRUE,
       '#collapsed' => TRUE,
-      '#description' => t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
+      '#description' => t('Optionally specify a path alias by which this node can be accessed. Use a relative path. For example, type <kbd>about</kbd> when writing an about page.'),
     );
     if ($path) {
       $form['path']['pid'] = array(
