check every booking form input value for emojis
This commit is contained in:
@@ -1215,7 +1215,14 @@ function booking_form_submit($form, &$form_state)
|
||||
global $event;
|
||||
|
||||
$values = $form_state['input'];
|
||||
|
||||
|
||||
//strip any emojis from user input
|
||||
if (variable_get('booking_enable_emoji_removal', 1) == 1) {
|
||||
foreach ($values as $key => $value) {
|
||||
$values[$key] = _booking_remove_emoji($value);
|
||||
}
|
||||
}
|
||||
|
||||
//get DOB from form
|
||||
$dob = _datearray_to_ts($values['booking_dob']);
|
||||
|
||||
@@ -1238,7 +1245,7 @@ function booking_form_submit($form, &$form_state)
|
||||
'!event' => $event->booking_eventname,
|
||||
'!name' => $values['booking_firstname'] . ' ' . $values['booking_lastname']
|
||||
));
|
||||
$title = _booking_remove_emoji($title);
|
||||
//$title = _booking_remove_emoji($title);
|
||||
$node->title = $title;
|
||||
$node->type = 'booking';
|
||||
$node->status = 1; // set published to true
|
||||
|
Reference in New Issue
Block a user