Commit 7de20dd4 authored by Tim Schoondergang's avatar Tim Schoondergang
Browse files

dubbele functie weggehaald

parent 70dea56b
......@@ -952,19 +952,6 @@ class DB
return $for_update;
}
/**
* clean variable from DB against slashes against SQL injection for export csv
*
* @param mixed $value
*
* @return void
*/
public static function cleanFromDB4Csv(&$value): void
{
self::addToStats(__FUNCTION__);
$value = self::cleanFromDB((string)$value);
}
/**
* Export function 2 csv
*
......@@ -1022,7 +1009,7 @@ class DB
fputcsv($fp, array_keys($row), $delimiter, $enclosure, $escape_char);
}
foreach ($row as $k => $v) {
self::cleanFromDB4Csv($v);
$row[$k] = self::cleanFromDB($v);
}
fputcsv($fp, $row, $delimiter, $enclosure, $escape_char);
$a++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment