Make sure file content is trimmed.

This commit is contained in:
James Cole
2018-01-06 19:17:47 +01:00
parent d7b1892bda
commit 9bcd1ed807

View File

@@ -209,6 +209,7 @@ class ImportJob extends Model
$disk = Storage::disk('upload');
$encryptedContent = $disk->get($fileName);
$content = Crypt::decrypt($encryptedContent);
$content = trim($content);
Log::debug(sprintf('Content size is %d bytes.', strlen($content)));
return $content;