From 0e9ca4b91e00a3771ea04027f6bf67a7bb249687 Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 8 Aug 2020 19:10:05 +0200 Subject: [PATCH] Pulizia caratteri in eccesso --- ws/receiver.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ws/receiver.php b/ws/receiver.php index 62a2ea3..7a59eba 100755 --- a/ws/receiver.php +++ b/ws/receiver.php @@ -35,11 +35,11 @@ if (!empty($data) ){ ]; } else { if ($stmt->bind_param('ssidd', $mac, $ssid, $dbm, $latitude, $longitude)) { - $mac = $data->address; - $ssid = $data->essid; - $dbm = $data->signal; - $latitude = $data->latitude; - $longitude = $data->longitude; + $mac = trim($data->address); + $ssid = trim($data->essid); + $dbm = trim($data->signal); + $latitude = trim($data->latitude); + $longitude = trim($data->longitude); // Esecuzione statement $stmt->execute();