Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Several reports of a possible unescaped data situation, thanks all.
James Colebea334f15950
diff --git a/app/Support/Export/ExportDataGenerator.php b/app/Support/Export/ExportDataGenerator.phpindex 580cb8f2eb..f361cf8c12 100644--- a/app/Support/Export/ExportDataGenerator.php+++ b/app/Support/Export/ExportDataGenerator.php@@ -60,6 +60,7 @@ use FireflyIII\User;use Illuminate\Support\Collection;use Illuminate\Support\Facades\Log;use League\Csv\CannotInsertRecord;+use League\Csv\EscapeFormula;use League\Csv\Exception;use League\Csv\Writer;use Psr\Container\ContainerExceptionInterface;@@ -285,6 +286,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -354,6 +357,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -413,6 +418,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -458,6 +465,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -538,6 +547,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -705,6 +716,8 @@ class ExportDataGenerator}// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -852,6 +865,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -908,6 +923,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {@@ -1104,6 +1121,8 @@ class ExportDataGenerator// load the CSV document from a string$csv = Writer::fromString();+ $escaper = new EscapeFormula();+ $csv->addFormatter($escaper->escapeRecord(...));// insert the headertry {