From f3827da54e3bd244d8ba562c131b6968e27fb47f Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Tue, 3 Sep 2019 02:39:37 +0200 Subject: [PATCH] DT --- nconnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nconnector.php b/nconnector.php index 119e1b5..4d3bd00 100755 --- a/nconnector.php +++ b/nconnector.php @@ -64,7 +64,7 @@ while ($user = $doldb->result->fetch_assoc()) exit (0); } - $oc_account_query = 'INSERT INTO oc_accounts (uid, data) VALUES ("' . $user["login"] . '","' . $account_data .'")'; + $oc_account_query = 'INSERT INTO oc_accounts (uid, data) VALUES ("' . $user["login"] . '","' . addslashes($account_data) .'")'; $oc_users_query = 'INSERT INTO oc_users (uid, displayname, password, uid_lower) VALUES ("' . $user["login"] . '","' . $user["firstname"] . ' ' . $user["lastname"] . '","1|' . $user["pass_crypted"] . '","' . strtolower($user["login"]) . '")'; if ($user["fk_adherent_type"] == 2)