Skip to content

Commit

Permalink
fix(global): Fix some security warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovaro committed Feb 9, 2024
1 parent 04a2940 commit 43f8801
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion resources/views/bank/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</td>
<td>
@isset($bank->website)
<a href="{{ $bank->website }}" target="_blank">{{ $bank->website }}</a>
<a href="{{ $bank->website }}" rel="noopener" target="_blank">{{ $bank->website }}</a>
@endisset
</td>
<td>{{ $bank->bic }}</td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/company/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<a href="mailto:{{ $company->email }}">{{ $company->email }}</a>
</td>
<td>
<a href="{{ $company->website }}" target="_blank">{{ $company->website }}</a>
<a href="{{ $company->website }}" rel="noopener" target="_blank">{{ $company->website }}</a>
</td>
<td class="text-center">
<span title="{{ (!empty($company->country)) ? $company->country->name : '' }}">
Expand Down
6 changes: 3 additions & 3 deletions resources/views/contact/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
<td>{{ $contact->notes }}</td>
<td>
@if($contact->linkedin)
<a href="{{ $contact->linkedin }}" target="_blank"><i class="lab la-linkedin fs-3"></i></a>
<a href="{{ $contact->linkedin }}" rel="noopener" target="_blank"><i class="lab la-linkedin fs-3"></i></a>
@endif

@if($contact->twitter)
<a href="{{ $contact->twitter }}" target="_blank"><i class="lab la-twitter fs-3"></i></a>
<a href="{{ $contact->twitter }}" rel="noopener" target="_blank"><i class="lab la-twitter fs-3"></i></a>
@endif
</td>
<td class="">{{ ($contact->created_at) ? $contact->created_at->format('d/m/Y H:i') : '' }}</td>
Expand All @@ -67,7 +67,7 @@
class="btn btn-xs btn-warning text-white">
<i class="las la-pen"></i>
</a>
<a href="{{ url('/contact/export-vcard/'.$contact->id) }}" target="_blank"
<a href="{{ url('/contact/export-vcard/'.$contact->id) }}" rel="noopener" target="_blank"
data-bs-toggle="tooltip" data-bs-placement="top" data-bs-original-title="{{ __('Download').' vCard' }}"
class="btn btn-xs btn-primary text-white">
<i class="las la-address-card"></i>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/customer/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="card">
<div class="card-body">
<div class="mt-2 mb-2">
<a href="{{ asset('/asset/upload/example/pflow_customer_example_20230414.csv') }}" target="_blank" class="btn btn-outline-success">{{ __('Download example file') }} <i class="las la-file-csv"></i></a>
<a href="{{ asset('/asset/upload/example/pflow_customer_example_20230414.csv') }}" rel="noopener" target="_blank" class="btn btn-outline-success">{{ __('Download example file') }} <i class="las la-file-csv"></i></a>
</div>
<form method="POST" action="{{ url('/customer/import/save') }}" enctype="multipart/form-data" class="form">
@csrf
Expand Down
7 changes: 4 additions & 3 deletions resources/views/customer/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class="link-secondary link-underline-opacity-25 link-underline-opacity-100-hover
<td class="text-nowrap text-center">
@if($customer->mobile)
<a href="https://api.whatsapp.com/send/?phone={{ $customer->mobile }}&text={{ __('Hello') }}"
title="{{ \App\Helpers\PhoneHelper::format($customer->mobile) }}" target="_blank"
title="{{ \App\Helpers\PhoneHelper::format($customer->mobile) }}" rel="noopener" target="_blank"
class="link-secondary text-decoration-none">
<i class="las la-mobile fs-4"></i>
</a>
Expand All @@ -138,7 +138,8 @@ class="link-secondary text-decoration-none">
</a>

<a href="https://api.whatsapp.com/send/?phone={{ $customer->mobile }}&text={{ __('Hello') }}"
title="{{ \App\Helpers\PhoneHelper::format($customer->mobile) }}" target="_blank"
title="{{ \App\Helpers\PhoneHelper::format($customer->mobile) }}"
rel="noopener" target="_blank"
class="link-secondary text-decoration-none">
<i class="lab la-whatsapp fs-4"></i>
</a>
Expand All @@ -162,7 +163,7 @@ class="link-secondary text-decoration-none">
</td>
<td class="text-nowrap text-center">
@if($customer->website)
<a href="{{ $customer->website }}" title="{{ $customer->website }}" target="_blank"
<a href="{{ $customer->website }}" title="{{ $customer->website }}" rel="noopener" target="_blank"
class="link-secondary text-decoration-none">
<i class="las la-globe fs-4"></i>
</a>
Expand Down
20 changes: 10 additions & 10 deletions resources/views/lead/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ class="link-secondary text-decoration-none">
</a>

<a href="https://api.whatsapp.com/send/?phone={{ $lead->mobile }}&text={{ __('Hello') }}"
title="{{ \App\Helpers\PhoneHelper::format($lead->mobile) }}" target="_blank"
title="{{ \App\Helpers\PhoneHelper::format($lead->mobile) }}" rel="noopener" target="_blank"
class="link-secondary text-decoration-none">
<i class="lab la-whatsapp fs-4"></i>
</a>

<a href="https://telegram.me/{{ $lead->mobile }}"
title="{{ \App\Helpers\PhoneHelper::format($lead->mobile) }}" target="_blank"
title="{{ \App\Helpers\PhoneHelper::format($lead->mobile) }}" rel="noopener" target="_blank"
class="link-secondary text-decoration-none">
<i class="lab la-telegram-plane fs-4"></i>
</a>
Expand All @@ -162,7 +162,7 @@ class="link-secondary text-decoration-none">
</td>
<td class="text-nowrap text-center">
@if($lead->website)
<a href="{{ $lead->website }}" title="{{ $lead->website }}" target="_blank" class="link-secondary text-decoration-none">
<a href="{{ $lead->website }}" title="{{ $lead->website }}" rel="noopener" target="_blank" class="link-secondary text-decoration-none">
<i class="las la-globe fs-4"></i>
</a>
@endif
Expand All @@ -178,44 +178,44 @@ class="link-secondary text-decoration-none">
</td>
<td class="text-nowrap d-none d-sm-table-cell">
@if($lead->facebook)
<a href="{{ $lead->facebook }}" target="_blank" class="text-decoration-none link-secondary">
<a href="{{ $lead->facebook }}" rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<i class="lab la-facebook-square fs-3"></i>
</a>
@endif

@if($lead->instagram)
<a href="{{ $lead->instagram }}" target="_blank" class="text-decoration-none link-secondary">
<a href="{{ $lead->instagram }}" rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<i class="lab la-instagram fs-3"></i>
</a>
@endif

@if($lead->linkedin)
<a href="{{ $lead->linkedin }}" target="_blank" class="text-decoration-none link-secondary">
<a href="{{ $lead->linkedin }}" rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<i class="lab la-linkedin fs-3"></i>
</a>
@endif

@if($lead->youtube)
<a href="{{ $lead->youtube }}" target="_blank" class="text-decoration-none link-secondary">
<a href="{{ $lead->youtube }}" rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<i class="lab la-youtube-square fs-3"></i>
</a>
@endif

@if($lead->twitter)
<a href="{{ $lead->twitter }}" target="_blank" class="text-decoration-none link-secondary">
<a href="{{ $lead->twitter }}" rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<i class="lab la-twitter-square fs-3"></i>
</a>
@endif

@if($lead->tiktok)
<a href="{{ $lead->tiktok }}" target="_blank" class="text-decoration-none link-secondary">
<a href="{{ $lead->tiktok }}" rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<span class="tiktok"><i class="fa-brands fa-tiktok"></i></span>
</a>
@endif

@if($lead->mobile)
<a href="https://api.whatsapp.com/send/?phone={{ $lead->mobile }}&text={{ __('Hello') }}"
target="_blank" class="text-decoration-none link-secondary">
rel="noopener" target="_blank" class="text-decoration-none link-secondary">
<i class="lab la-whatsapp fs-3"></i>
</a>
@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/order/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{{ (!empty($order->items)) ? $order->items->count() : 0 }}
</td>
<td>
{{ number_format($order->getAmount(), 2, ',', '.') }}
{{ $order->getAmountFormated() }}
</td>
<td>{{ $order->created_at->format('d/m/Y H:i') }}</td>
<td>{{ $order->updated_at->format('d/m/Y H:i') }}</td>
Expand Down

0 comments on commit 43f8801

Please sign in to comment.