Fix similar XSS issues.

This commit is contained in:
James Cole
2019-08-03 05:08:35 +02:00
parent 8717f469b1
commit 2d7494f8cd
9 changed files with 28 additions and 28 deletions

View File

@@ -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'));