Fixing XSS vulnerability by using the proper output tags
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
@endif
|
||||
|
||||
@foreach($news as $item)
|
||||
<h4 style="margin-top: 0px;">{!! $item->subject !!}</h4>
|
||||
<p class="category">{!! $item->user->name !!}
|
||||
- {!! show_datetime($item->created_at) !!}</p>
|
||||
<h4 style="margin-top: 0px;">{{ $item->subject }}</h4>
|
||||
<p class="category">{{ $item->user->name }}
|
||||
- {{ show_datetime($item->created_at) }}</p>
|
||||
|
||||
{!! $item->body !!}
|
||||
{{ $item->body }}
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
@foreach($users as $u)
|
||||
<tr>
|
||||
<td style="padding-right: 10px;">
|
||||
<span class="title">{!! $u->pilot_id !!}</span>
|
||||
<span class="title">{{ $u->pilot_id }}</span>
|
||||
</td>
|
||||
<td>{!! $u->name !!}</td>
|
||||
<td>{{ $u->name }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
@foreach($pireps as $p)
|
||||
<tr>
|
||||
<td style="padding-right: 10px;">
|
||||
<span class="title">{!! $p->airline->code !!}</span>
|
||||
<span class="title">{{ $p->airline->code }}</span>
|
||||
</td>
|
||||
<td>
|
||||
{!! $p->dpt_airport_id !!}-
|
||||
{!! $p->arr_airport_id !!}
|
||||
{!! $p->aircraft->name !!}
|
||||
{{ $p->dpt_airport_id }}-
|
||||
{{ $p->arr_airport_id }}
|
||||
{{ $p->aircraft->name }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="col-md-12">
|
||||
<h3 class="description">flight map</h3>
|
||||
<div class="box-body">
|
||||
<div id="map" style="width: {!! $config['width'] !!}; height: {!! $config['height'] !!}"></div>
|
||||
<div id="map" style="width: {{ $config['width'] }}; height: {{ $config['height'] }}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -18,11 +18,11 @@
|
||||
<table class="table">
|
||||
@foreach($pireps as $pirep)
|
||||
<tr>
|
||||
<td>{!! $pirep->ident !!}</td>
|
||||
<td>{!! $pirep->dpt_airport_id !!}</td>
|
||||
<td>{!! $pirep->arr_airport_id !!}</td>
|
||||
<td>{{ $pirep->ident }}</td>
|
||||
<td>{{ $pirep->dpt_airport_id }}</td>
|
||||
<td>{{ $pirep->arr_airport_id }}</td>
|
||||
<td>
|
||||
{!! PirepStatus::label($pirep->status); !!}
|
||||
{{ PirepStatus::label($pirep->status) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -33,9 +33,9 @@
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
phpvms.render_live_map({
|
||||
'update_uri': '{!! url('/api/acars') !!}',
|
||||
'pirep_uri': '{!! url('/api/pireps/{id}/acars/geojson') !!}',
|
||||
'aircraft_icon': '{!! public_asset('/assets/img/acars/aircraft.png') !!}',
|
||||
'update_uri': '{{ url('/api/acars') }}',
|
||||
'pirep_uri': '{{ url('/api/pireps/{id}/acars/geojson') }}',
|
||||
'aircraft_icon': '{{ public_asset('/assets/img/acars/aircraft.png') }}',
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user