|
@@ -111,7 +111,7 @@ while ($tmp != null) {
|
|
|
|
|
|
if ($type == 'all' || $type == 'users') {
|
|
|
// Loop on each record and update the email to null if email into $groupofemails
|
|
|
- $sql = $sql_base."user as u SET u.email = NULL WHERE u.email IN (".$emailsin.");";
|
|
|
+ $sql = $sql_base."user as u SET u.email = NULL WHERE u.email IN (".$db->sanitize($emailsin, 1).");";
|
|
|
print "Try to update users, ";
|
|
|
$resql = $db->query($sql);
|
|
|
if (!$resql) {
|
|
@@ -122,7 +122,7 @@ while ($tmp != null) {
|
|
|
|
|
|
if ($type == 'all' || $type == 'thirdparties') {
|
|
|
// Loop on each record and update the email to null if email into $groupofemails
|
|
|
- $sql = $sql_base."societe as s SET s.email = NULL WHERE s.email IN (".$emailsin.");";
|
|
|
+ $sql = $sql_base."societe as s SET s.email = NULL WHERE s.email IN (".$db->sanitize($emailsin, 1).");";
|
|
|
print "Try to update thirdparties, ";
|
|
|
$resql = $db->query($sql);
|
|
|
if (!$resql) {
|
|
@@ -134,7 +134,7 @@ while ($tmp != null) {
|
|
|
if ($type == 'all' || $type == 'contacts') {
|
|
|
// Loop on each record and update the email to null if email into $groupofemails
|
|
|
|
|
|
- $sql = $sql_base."socpeople as s SET s.email = NULL WHERE s.email IN (".$emailsin.");";
|
|
|
+ $sql = $sql_base."socpeople as s SET s.email = NULL WHERE s.email IN (".$db->sanitize($emailsin, 1).");";
|
|
|
print "Try to update contacts, ";
|
|
|
$resql = $db->query($sql);
|
|
|
if (!$resql) {
|
|
@@ -146,7 +146,7 @@ while ($tmp != null) {
|
|
|
if ($type == 'all' || $type == 'members') {
|
|
|
// Loop on each record and update the email to null if email into $groupofemails
|
|
|
|
|
|
- $sql = $sql_base."adherent as a SET a.email = NULL WHERE a.email IN (".$emailsin.");";
|
|
|
+ $sql = $sql_base."adherent as a SET a.email = NULL WHERE a.email IN (".$db->sanitize($emailsin, 1).");";
|
|
|
print "Try to update members, ";
|
|
|
$resql = $db->query($sql);
|
|
|
if (!$resql) {
|