diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-26 08:30:19 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-26 08:30:19 +0000 |
commit | 1a5f3010e30f2df1594cffb2bb8c2c9147d17816 (patch) | |
tree | 53b14b31f069d67ea121014134edaaeb8566f269 /modules/profile/profile.admin.inc | |
parent | a989f6cd50a21c8cb41af3cba4c604502cc46345 (diff) | |
download | brdo-1a5f3010e30f2df1594cffb2bb8c2c9147d17816.tar.gz brdo-1a5f3010e30f2df1594cffb2bb8c2c9147d17816.tar.bz2 |
#188498 by Rob Loach: user profile category names are stored and compared case insensitively, but the reserved category name check was not case insensitive
Diffstat (limited to 'modules/profile/profile.admin.inc')
-rw-r--r-- | modules/profile/profile.admin.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc index 359789210..d19b6e01c 100644 --- a/modules/profile/profile.admin.inc +++ b/modules/profile/profile.admin.inc @@ -177,7 +177,7 @@ function profile_field_form_validate($form, &$form_state) { if (!$form_state['values']['category']) { form_set_error('category', t('You must enter a category.')); } - if ($form_state['values']['category'] == 'account') { + if (strtolower($form_state['values']['category']) == 'account') { form_set_error('category', t('The specified category name is reserved for use by Drupal.')); } $args1 = array($form_state['values']['title'], $form_state['values']['category']); |