add code to strip emoji from registration data when entered by user
This commit is contained in:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user