From 0763037aec19984836a6ed4b992f83e875f54ffa Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 8 Sep 2017 23:04:57 +1000 Subject: [PATCH] add code to strip emoji from registration data when entered by user --- booking.helper.inc | 9 ++++++++- booking.regn_node.inc | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/booking.helper.inc b/booking.helper.inc index e7ee29b..fa01792 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1,5 +1,12 @@ $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', "
Inserting node:\n@info
", array('@info' => print_r($data, TRUE)));