mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Make sure file content is trimmed.
This commit is contained in:
@@ -209,6 +209,7 @@ class ImportJob extends Model
|
|||||||
$disk = Storage::disk('upload');
|
$disk = Storage::disk('upload');
|
||||||
$encryptedContent = $disk->get($fileName);
|
$encryptedContent = $disk->get($fileName);
|
||||||
$content = Crypt::decrypt($encryptedContent);
|
$content = Crypt::decrypt($encryptedContent);
|
||||||
|
$content = trim($content);
|
||||||
Log::debug(sprintf('Content size is %d bytes.', strlen($content)));
|
Log::debug(sprintf('Content size is %d bytes.', strlen($content)));
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
Reference in New Issue
Block a user