add code to strip emoji from registration data when entered by user

This commit is contained in:
2017-09-08 23:04:57 +10:00
parent 258febf238
commit 0763037aec
2 changed files with 9 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ function booking_insert($node) {
foreach ($node as $key => $value) {
//check if the key is a field that belongs in the database
if ((strpos($key, "booking_") === 0) || $key === "nid") {
$data[$key] = $value;
$data[$key] = _booking_remove_emoji($value);
}
}
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($data, TRUE)));