Index: image_captcha/image_captcha.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/captcha/image_captcha/Attic/image_captcha.module,v
retrieving revision 1.1.4.9
diff -u -b -B -u -p -r1.1.4.9 image_captcha.module
--- image_captcha/image_captcha.module	17 Aug 2007 18:43:13 -0000	1.1.4.9
+++ image_captcha/image_captcha.module	22 Aug 2007 12:35:18 -0000
@@ -156,6 +156,10 @@ function image_captcha_settings_form() {
  */
 function image_captcha_settings_form_validate($form_id, $form_values) {
   if ($form_id == 'image_captcha_settings_form') {
+    // check image_captcha_image_allowed_chars for spaces
+    if (preg_match('/\s/', $form_values['image_captcha_image_allowed_chars'])) {
+      form_set_error('image_captcha_image_allowed_chars', t('The list of characters to use should not contain spaces.'));
+    }
     // check font
     $font = $form_values['image_captcha_font'];
     if (!is_file($font) || !is_readable($font)) {
