mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Make doubly sure special characters are removed from the notes.
This commit is contained in:
parent
69929bee31
commit
a74d345ac2
@ -50,6 +50,7 @@ use FireflyIII\Repositories\Recurring\RecurringRepositoryInterface;
|
||||
use FireflyIII\Repositories\Rule\RuleRepositoryInterface;
|
||||
use FireflyIII\Repositories\Tag\TagRepositoryInterface;
|
||||
use FireflyIII\Repositories\TransactionGroup\TransactionGroupRepositoryInterface;
|
||||
use FireflyIII\Support\Request\ConvertsDataTypes;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Support\Collection;
|
||||
use League\Csv\CannotInsertRecord;
|
||||
@ -61,6 +62,8 @@ use League\Csv\Writer;
|
||||
*/
|
||||
class ExportDataGenerator
|
||||
{
|
||||
use ConvertsDataTypes;
|
||||
|
||||
private const ADD_RECORD_ERR = 'Could not add record to set: %s';
|
||||
private const EXPORT_ERR = 'Could not export to string: %s';
|
||||
private Collection $accounts;
|
||||
@ -698,7 +701,7 @@ class ExportDataGenerator
|
||||
$journal['budget_name'],
|
||||
$journal['bill_name'],
|
||||
$this->mergeTags($journal['tags']),
|
||||
$journal['notes'],
|
||||
$this->clearString($journal['notes'], true),
|
||||
|
||||
// export also the optional fields (ALL)
|
||||
|
||||
|
@ -68,6 +68,9 @@ trait ConvertsDataTypes
|
||||
return null;
|
||||
}
|
||||
$search = [
|
||||
"\0", // NUL
|
||||
"\f", // form feed
|
||||
"\v", // vertical tab
|
||||
"\u{0001}", // start of heading
|
||||
"\u{0002}", // start of text
|
||||
"\u{0003}", // end of text
|
||||
|
Loading…
Reference in New Issue
Block a user