Escape output to prevent XSS injections (#3924)

Credit to @nathan-van-der-werf
This commit is contained in:
Nathan van der Werf 2018-11-15 22:05:44 +01:00 committed by Luke Towers
parent 2b16bad0fe
commit 6fb6211c56
6 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
>
<div class="record">
<a href="javascript:;" class="move"></a>
<span><?= $this->reorderGetRecordName($record) ?></span>
<span><?= e($this->reorderGetRecordName($record)) ?></span>
<input name="record_ids[]" type="hidden" value="<?= $record->getKey() ?>" />
</div>

View File

@ -3,7 +3,7 @@
placeholder="<?= $placeholder ?>"
type="text"
name="<?= $this->getName() ?>"
value="<?= $value ?>"
value="<?= e($value) ?>"
data-request="<?= $this->getEventHandler('onSubmit') ?>"
<?= !$searchOnEnter ? 'data-track-input' : '' ?>
data-load-indicator

View File

@ -14,7 +14,7 @@
<div data-control="toolbar">
<div class="scoreboard-item title-value">
<h4><?= e(trans('system::lang.mail_templates.layout')) ?></h4>
<p><?= $formModel->code ?></p>
<p><?= e($formModel->code) ?></p>
</div>
</div>
</div>

View File

@ -14,7 +14,7 @@
<div data-control="toolbar">
<div class="scoreboard-item title-value">
<h4><?= e(trans('system::lang.mail_templates.partial')) ?></h4>
<p><?= $formModel->code ?></p>
<p><?= e($formModel->code) ?></p>
</div>
</div>
</div>

View File

@ -14,7 +14,7 @@
<div data-control="toolbar">
<div class="scoreboard-item title-value">
<h4><?= e(trans('system::lang.mail_templates.template')) ?></h4>
<p><?= $formModel->code ?></p>
<p><?= e($formModel->code) ?></p>
</div>
</div>
</div>

View File

@ -2,7 +2,7 @@
<div class="form-control control-simplelist with-icons">
<ul>
<?php foreach ((array) $formModel->referer as $referer): ?>
<li class="oc-icon-file-o"><?= $referer ?></li>
<li class="oc-icon-file-o"><?= e($referer) ?></li>
<?php endforeach ?>
</ul>
</div>