Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
This should at least catch #357
James Cole3598780d542c
diff --git a/app/Import/Importer/CsvImporter.php b/app/Import/Importer/CsvImporter.phpindex 797335cb1d..0cc869fcd4 100644--- a/app/Import/Importer/CsvImporter.php+++ b/app/Import/Importer/CsvImporter.php@@ -111,9 +111,14 @@ class CsvImporter implements ImporterInterface// set some vars:$object->setUser($this->job->user);$config = $this->job->configuration;+ $json = json_encode($row);++ if ($json === false) {+ throw new FireflyException(sprintf('Could not process row #%d. Are you sure the uploaded file is encoded as "UTF-8"?', $index));+ }// hash the row:- $hash = hash('sha256', json_encode($row));+ $hash = hash('sha256', $json);$object->importValue('hash', 100, $hash);// and this is the point where the specifix go to work.