? submit_node_preview_60_6.patch
? submit_node_preview_60_7.patch
? type_deletion_cleanup6x_2.patch
? type_deletion_cleanup6x_3.patch
? view_admin_created60_47.patch
? view_admin_created60_50.patch
? whitespace_title_1.patch
? whitespace_title_2.patch
? sites/default/settings.php
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.819
diff -u -p -r1.819 node.module
--- modules/node/node.module	23 May 2007 07:55:08 -0000	1.819
+++ modules/node/node.module	25 May 2007 18:49:49 -0000
@@ -1983,6 +1983,11 @@ function node_validate($node, $form = ar
     form_set_error('body', t('The body of your @type is too short. You need at least %words words.', array('%words' => $type->min_word_count, '@type' => $type->name)));
   }
 
+  // Make sure the title contains something more than whitespace.
+  if (trim($node->title) == '') {
+    form_set_error('title', t('The title field cannot be only spaces or other whitespace.'));
+  }
+
   if (isset($node->nid) && (node_last_changed($node->nid) > $node->changed)) {
     form_set_error('changed', t('This content has been modified by another user, changes cannot be saved.'));
   }
