diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-24 16:32:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-24 16:32:30 +0000 |
commit | dc86807cfd162bb59b8cf4fe4da3bf8e4282f539 (patch) | |
tree | 258bc72d1e42295c37d5aeadb4efd63c8871b133 | |
parent | 4df25c20cbfe5693e4860e0a2cdcc69714940bf0 (diff) | |
download | brdo-dc86807cfd162bb59b8cf4fe4da3bf8e4282f539.tar.gz brdo-dc86807cfd162bb59b8cf4fe4da3bf8e4282f539.tar.bz2 |
- Patch #99517 by webchick and chx: fixed bogus regex.
-rw-r--r-- | modules/node/content_types.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 251a49066..389234617 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -231,7 +231,7 @@ function node_type_form_validate($form_id, $form_values) { if (isset($types[$type->type]) && $type->type != $old_type) { form_set_error('type', t('The machine-readable name %type is already taken.', array('%type' => $type->type))); } - if (!preg_match('!a-z0-9_!', $type->type)) { + if (!preg_match('!^[a-z0-9_]+$!', $type->type)) { form_set_error('type', t('The machine-readable name can only consist of lowercase letters, underscores, and numbers.')); } } |