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

@@ -12,27 +12,27 @@
<tbody>
@foreach($rank->subfleets as $sf)
<tr>
<td>{!! $sf->airline->name !!}</td>
<td>{!! $sf->name !!} ({!! $sf->type !!})</td>
<td>{{ $sf->airline->name }}</td>
<td>{{ $sf->name }} ({{ $sf->type }})</td>
<td style="text-align: center;">
<a href="#" data-pk="{!! $sf->id !!}"
data-name="acars_pay">{!! $sf->pivot->acars_pay !!}</a>
<a href="#" data-pk="{{ $sf->id }}"
data-name="acars_pay">{{ $sf->pivot->acars_pay }}</a>
</td>
<td style="text-align: center;">
<a href="#" data-pk="{!! $sf->id !!}"
data-name="manual_pay">{!! $sf->pivot->manual_pay !!}</a>
<a href="#" data-pk="{{ $sf->id }}"
data-name="manual_pay">{{ $sf->pivot->manual_pay }}</a>
</td>
<td style="width: 10%; text-align: center;" class="form-inline">
{!! Form::open(['url' => '/admin/ranks/'.$rank->id.'/subfleets', 'method' => 'delete', 'class' => 'pjax_form']) !!}
{!! Form::hidden('subfleet_id', $sf->id) !!}
{{ Form::open(['url' => '/admin/ranks/'.$rank->id.'/subfleets', 'method' => 'delete', 'class' => 'pjax_form']) }}
{{ Form::hidden('subfleet_id', $sf->id) }}
<div class='btn-group'>
{!! Form::button('<i class="fa fa-times"></i>',
{{ Form::button('<i class="fa fa-times"></i>',
['type' => 'submit',
'class' => 'btn btn-sm btn-danger btn-icon'])
!!}
}}
</div>
{!! Form::close() !!}
{{ Form::close() }}
</td>
</tr>
@endforeach
@@ -42,19 +42,19 @@
<div class="row">
<div class="col-lg-12">
<div class="input-group input-group-lg pull-right">
{!! Form::open(['url' => url('/admin/ranks/'.$rank->id.'/subfleets'),
{{ Form::open(['url' => url('/admin/ranks/'.$rank->id.'/subfleets'),
'method' => 'post',
'class' => 'pjax_form form-inline'
])
!!}
{!! Form::select('subfleet_id', $avail_subfleets, null, [
}}
{{ Form::select('subfleet_id', $avail_subfleets, null, [
'placeholder' => 'Select Subfleet',
'class' => 'select2 form-control input-lg'])
!!}
{!! Form::button('<i class="fa fa-plus"></i> Add',
}}
{{ Form::button('<i class="fa fa-plus"></i> Add',
['type' => 'submit',
'class' => 'btn btn-success btn-small']) !!}
{!! Form::close() !!}
'class' => 'btn btn-success btn-small']) }}
{{ Form::close() }}
</div>
</div>
</div>