Loading custom_body_class.module +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ function _node_special_character_form_validate($form, $form_state) { if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬]/', $form_state->getValue('body_class')[0]['value'])) { $form_state->setErrorByName('body_class', 'Special character in Custom Body Class'); } if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬]/', $form_state->getValue('nodetype_class'))) { if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬]/', $form_state->getValue('nodetype_class', ''))) { $form_state->setErrorByName('nodetype_class', 'Special character in Custom Body Class Settings'); } } Loading Loading
custom_body_class.module +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ function _node_special_character_form_validate($form, $form_state) { if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬]/', $form_state->getValue('body_class')[0]['value'])) { $form_state->setErrorByName('body_class', 'Special character in Custom Body Class'); } if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬]/', $form_state->getValue('nodetype_class'))) { if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬]/', $form_state->getValue('nodetype_class', ''))) { $form_state->setErrorByName('nodetype_class', 'Special character in Custom Body Class Settings'); } } Loading