Projet

Général

Profil

Révision ca92d645

Ajouté par Assos Assos il y a plus de 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/honeypot/honeypot.admin.inc
171 171
    form_set_error('honeypot_element_name', t("The element name cannot contain spaces or other special characters."));
172 172
  }
173 173

  
174
  // Make sure Honeypot element name starts with a letter.
175
  if (!preg_match("/^[a-zA-Z].+$/", $form_state['values']['honeypot_element_name'])) {
176
    form_set_error('honeypot_element_name', t("The element name must start with a letter."));
177
  }
178

  
174 179
  // Make sure Honeypot element name isn't one of the reserved names.
175 180
  $reserved_element_names = array(
176 181
    'name',

Formats disponibles : Unified diff