From 8717f469b10e9f7e1547c6f70f7d24e1359d28d4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 3 Aug 2019 05:08:20 +0200 Subject: [PATCH] Fix #2370 --- app/Support/Http/Controllers/UserNavigation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Support/Http/Controllers/UserNavigation.php b/app/Support/Http/Controllers/UserNavigation.php index 66e30c5c02..1cac4ed6b0 100644 --- a/app/Support/Http/Controllers/UserNavigation.php +++ b/app/Support/Http/Controllers/UserNavigation.php @@ -124,7 +124,7 @@ trait UserNavigation /** @var Transaction $transaction */ $transaction = $account->transactions()->first(); if (null === $transaction) { - app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => $account->name, 'id' => $account->id])); + app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => e($account->name), 'id' => $account->id])); Log::error(sprintf('Expected a transaction. Account #%d has none. BEEP, error.', $account->id)); return redirect(route('index')); @@ -135,7 +135,7 @@ trait UserNavigation $opposingTransaction = $journal->transactions()->where('transactions.id', '!=', $transaction->id)->first(); if (null === $opposingTransaction) { - app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => $account->name, 'id' => $account->id])); + app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => e($account->name), 'id' => $account->id])); Log::error(sprintf('Expected an opposing transaction. Account #%d has none. BEEP, error.', $account->id)); }