summaryrefslogtreecommitdiff
path: root/proposal.inc
diff options
context:
space:
mode:
authorSashi202018-05-28 14:43:38 +0530
committerSashi202018-05-28 14:43:38 +0530
commit5637178fb00fc5b90bd97dc545dea4c2848c3257 (patch)
tree25c4a23946c5807407946285661c298814aab525 /proposal.inc
parent4ce569845326ed1a6d05831100289043b87b6036 (diff)
downloaddwsim_flowsheet-5637178fb00fc5b90bd97dc545dea4c2848c3257.tar.gz
dwsim_flowsheet-5637178fb00fc5b90bd97dc545dea4c2848c3257.tar.bz2
dwsim_flowsheet-5637178fb00fc5b90bd97dc545dea4c2848c3257.zip
Minor changes in the custom certificate interface
Diffstat (limited to 'proposal.inc')
-rwxr-xr-xproposal.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/proposal.inc b/proposal.inc
index 22bcc53..30836b5 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -254,7 +254,7 @@ function dwsim_flowsheet_proposal_form($form, &$form_state, $no_js_use = FALSE)
$form['reference'] = array(
'#type' => 'textfield',
'#title' => t('Reference'),
- '#size' => 250,
+ '#maxsize' => 250,
'#required' => TRUE,
'#attributes' => array(
'placeholder' => 'Enter reference'
@@ -523,8 +523,8 @@ function dwsim_flowsheet_proposal_form_validate($form, &$form_state)
form_set_error('project_title', t('Minimum charater limit is 10 charaters, please check the length of the project title'));
}
- else if(preg_match('/[\/^£$%&*()}{@#~?><>,|=_+¬]/', $form_state['values']['project_title']))
- form_set_error('project_title', t('Special characters aree not allowed for project title'));
+ else if(preg_match('/[\^£$%&*()}{@#~?><>.:;`|=_+¬]/', $form_state['values']['project_title']))
+ form_set_error('project_title', t('Special characters are not allowed for project title'));
//strlen($form_state['values']['project_title']) < 10
} //$form_state['values']['project_title'] != ''
else