Skip to content

Commit f8598a7

Browse files
authored
Implemented security measure for external links (#31666)
References: * https://web.dev/external-anchors-use-rel-noopener/ * https://twitter.com/addyosmani/status/1234055782896979968 Signed-off-by: CaddyDz <[email protected]>
1 parent 668d625 commit f8598a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></a></p>
1+
<p align="center"><a href="https://laravel.com" target="_blank" rel="noopener"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></a></p>
22

33
<p align="center">
44
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>

src/Illuminate/Mail/resources/views/html/button.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
88
<tr>
99
<td>
10-
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank">{{ $slot }}</a>
10+
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank" rel="noopener">{{ $slot }}</a>
1111
</td>
1212
</tr>
1313
</table>

0 commit comments

Comments
 (0)