Commit 67fdaece authored by soxofaan's avatar soxofaan

#240088: allow form_id's with numeric characters

parent a24c1dcc
......@@ -233,7 +233,7 @@ function captcha_point_admin_form($form_state, $captcha_point_form_id=NULL) {
* validation function for captcha_point_admin_form
*/
function captcha_point_admin_form_validate($form, $form_state) {
if (!preg_match('/^[a-z_]+$/', $form_state['values']['captcha_point_form_id'])) {
if (!preg_match('/^[a-z0-9_]+$/', $form_state['values']['captcha_point_form_id'])) {
form_set_error('captcha_point_form_id', t('Illegal form_id'));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment