mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 02:52:44 +00:00
Fix similar XSS issues.
This commit is contained in:
@@ -396,7 +396,7 @@ class SingleController extends Controller
|
||||
// store the journal only, flash the rest.
|
||||
Log::debug(sprintf('Count of error messages is %d', $this->attachments->getErrors()->count()));
|
||||
if (\count($this->attachments->getErrors()->get('attachments')) > 0) {
|
||||
session()->flash('error', $this->attachments->getErrors()->get('attachments'));
|
||||
session()->flash('error', e($this->attachments->getErrors()->get('attachments')));
|
||||
}
|
||||
// flash messages
|
||||
if (\count($this->attachments->getMessages()->get('attachments')) > 0) {
|
||||
@@ -463,7 +463,7 @@ class SingleController extends Controller
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
if (\count($this->attachments->getErrors()->get('attachments')) > 0) {
|
||||
session()->flash('error', $this->attachments->getErrors()->get('attachments'));
|
||||
session()->flash('error', e($this->attachments->getErrors()->get('attachments')));
|
||||
}
|
||||
if (\count($this->attachments->getMessages()->get('attachments')) > 0) {
|
||||
session()->flash('info', $this->attachments->getMessages()->get('attachments'));
|
||||
|
Reference in New Issue
Block a user