Fixing XSS vulnerability by using the proper output tags

This commit is contained in:
Nabeel Shahzad
2018-03-12 17:58:12 -05:00
parent 17f9464208
commit 8076c2d8c1
165 changed files with 1187 additions and 1187 deletions

View File

@@ -8,21 +8,21 @@
@foreach($pirep->fields as $field)
<tr>
<td>
{!! $field->name !!}
{{ $field->name }}
@if($field->required === true)
<span class="text-danger">*</span>
@endif
</td>
<td>
<div class="form-group">
{!! Form::text($field->slug, null, [
{{ Form::text($field->slug, null, [
'class' => 'form-control'
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
</td>
<td>
{!! PirepSource::label($field->source) !!}
{{ PirepSource::label($field->source) }}
</td>
</tr>
@endforeach