Index: webform_validation.validators.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform_validation/webform_validation.validators.inc,v
retrieving revision 1.24
diff -u -p -r1.24 webform_validation.validators.inc
--- webform_validation.validators.inc	14 Nov 2010 16:27:46 -0000	1.24
+++ webform_validation.validators.inc	26 Nov 2010 16:35:20 -0000
@@ -195,6 +195,13 @@ function webform_validation_webform_vali
       ),
       'description' => t("Validates that user-entered data doesn't contain any of the specified illegal words"),
     ),
+    'valid_url' => array(
+      'name' => "Valid URL",
+      'component_types' => array(
+        'textfield',
+      ),
+      'description' => t("Validates that the user-entered data is a valid URL using Drupal's built in !link.", array('!link' => l(t('valid_url'), 'http://api.drupal.org/api/drupal/includes--common.inc/function/valid_url'))),
+    ),
   );
 }
 
@@ -405,6 +412,13 @@ function webform_validation_webform_vali
           }
         return $errors;
         break;
+      case "valid_url":
+          foreach ($items as $key => $val) {
+            if (!valid_url($val)) {
+              $errors[$key] = t('%item does not appear to be a valid URL.', array('%item' => $components[$key]['name']));
+            }
+          }
+        return $errors;
     }
   }
 }
@@ -527,4 +541,4 @@ function _webform_numeric_check_data($da
     return $range;
   }
   return $range;
-}
\ No newline at end of file
+}
